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

pull/4420/head
Jeroen Hoekx 2012-04-13 15:31:02 +02:00
parent a975852f66
commit d366885367
1 changed files with 2 additions and 0 deletions

View File

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