summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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
########################################################