From d366885367d6044d4b29e199e2d193b026d56af5 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 13 Apr 2012 15:31:02 +0200 Subject: [PATCH] Stop async /bin/ansible if completed on all hosts. --- bin/ansible | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ansible b/bin/ansible index 494d54d2edf..0543aed79eb 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 ########################################################