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:
Michael DeHaan
2012-03-13 21:30:34 -04:00
parent 4ae98ed92d
commit e3b4981feb
2 changed files with 58 additions and 11 deletions

View File

@@ -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 '''