mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Various additions to make sure timed out and failed hosts are taken out of the playbook even if failed
during setup, async tasks, or poll operations. This introduced some redundancy so I've made some notes in the code where things need to be refactored to remove them.
This commit is contained in:
@@ -60,6 +60,9 @@ class PlaybookCallbacks(object):
|
||||
def on_async_poll(self, jid, host, clock, host_result):
|
||||
print async_poll_status(jid, host, clock, host_result)
|
||||
|
||||
def on_dark_host(self, host, msg):
|
||||
print "exception: [%s] => %s" % (host, msg)
|
||||
|
||||
|
||||
def main(args):
|
||||
''' run ansible-playbook operations '''
|
||||
|
||||
Reference in New Issue
Block a user