Stop async /bin/ansible if completed on all hosts.

This commit is contained in:
Jeroen Hoekx 2012-04-13 15:31:02 +02:00
parent a975852f66
commit d366885367

View file

@ -147,6 +147,8 @@ class Cli(object):
clock = clock - options.poll_interval clock = clock - options.poll_interval
time.sleep(options.poll_interval) time.sleep(options.poll_interval)
poll_hosts = self.hosts_to_poll(poll_results) poll_hosts = self.hosts_to_poll(poll_results)
if len(poll_hosts)==0:
break
######################################################## ########################################################