mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
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:
parent
22f3aef4dc
commit
a2f76c1c69
3 changed files with 7 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue