diff options
author | Jeroen Hoekx <jeroen.hoekx@hamok.be> | 2012-04-13 15:31:02 +0200 |
---|---|---|
committer | Jeroen Hoekx <jeroen.hoekx@hamok.be> | 2012-04-13 15:32:41 +0200 |
commit | d366885367d6044d4b29e199e2d193b026d56af5 (patch) | |
tree | c2069b5ff360f453936aaa4c660c3373443bafb6 | |
parent | a975852f668dc1e9985bd46215cbbd5f125e7a04 (diff) | |
download | ansible-d366885367d6044d4b29e199e2d193b026d56af5.tar.gz |
Stop async /bin/ansible if completed on all hosts.
-rwxr-xr-x | bin/ansible | 2 |
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 ######################################################## |