If all hosts in a play fail, fail the whole playbook and don't bother printing out every remaining task.

This commit is contained in:
Michael DeHaan 2012-09-30 21:06:00 -04:00
parent 22f3aef4dc
commit a2f76c1c69
3 changed files with 7 additions and 9 deletions

View file

@ -376,7 +376,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
super(PlaybookRunnerCallbacks, self).on_skipped(host, item)
def on_no_hosts(self):
print stringc("no hosts matched or remaining\n", 'red')
print stringc("FATAL: no hosts matched or all hosts have already failed -- aborting playbook\n", 'red')
super(PlaybookRunnerCallbacks, self).on_no_hosts()
def on_async_poll(self, host, res, jid, clock):