summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJeroen Hoekx <jeroen.hoekx@hamok.be>2012-04-13 15:31:02 +0200
committerJeroen Hoekx <jeroen.hoekx@hamok.be>2012-04-13 15:32:41 +0200
commitd366885367d6044d4b29e199e2d193b026d56af5 (patch)
treec2069b5ff360f453936aaa4c660c3373443bafb6 /bin
parenta975852f668dc1e9985bd46215cbbd5f125e7a04 (diff)
downloadansible-d366885367d6044d4b29e199e2d193b026d56af5.tar.gz
Stop async /bin/ansible if completed on all hosts.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ansible b/bin/ansible
index 494d54d2ed..0543aed79e 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -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
########################################################