Ubuntu 14.04

capture just runs the command on a single host (first in list I think), is this what you want?  Do you only ever run this code when talking to a single host?  Or are you assuming that all hosts will be the same ver?