|
|
@ -277,7 +277,7 @@ class PlayBook(object):
|
|
|
|
# since these likely got killed by async_wrapper
|
|
|
|
# since these likely got killed by async_wrapper
|
|
|
|
for host in poller.hosts_to_poll:
|
|
|
|
for host in poller.hosts_to_poll:
|
|
|
|
reason = { 'failed' : 1, 'rc' : None, 'msg' : 'timed out' }
|
|
|
|
reason = { 'failed' : 1, 'rc' : None, 'msg' : 'timed out' }
|
|
|
|
self.runner_callbacks.on_failed(host, reason)
|
|
|
|
self.runner_callbacks.on_async_failed(host, reason, poller.jid)
|
|
|
|
results['contacted'][host] = reason
|
|
|
|
results['contacted'][host] = reason
|
|
|
|
|
|
|
|
|
|
|
|
return results
|
|
|
|
return results
|
|
|
@ -319,6 +319,9 @@ class PlayBook(object):
|
|
|
|
if task.async_poll_interval > 0:
|
|
|
|
if task.async_poll_interval > 0:
|
|
|
|
# if not polling, playbook requested fire and forget, so don't poll
|
|
|
|
# if not polling, playbook requested fire and forget, so don't poll
|
|
|
|
results = self._async_poll(poller, task.async_seconds, task.async_poll_interval)
|
|
|
|
results = self._async_poll(poller, task.async_seconds, task.async_poll_interval)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
for (host, res) in results.get('contacted', {}).iteritems():
|
|
|
|
|
|
|
|
self.runner_callbacks.on_async_ok(host, res, poller.jid)
|
|
|
|
|
|
|
|
|
|
|
|
contacted = results.get('contacted',{})
|
|
|
|
contacted = results.get('contacted',{})
|
|
|
|
dark = results.get('dark', {})
|
|
|
|
dark = results.get('dark', {})
|
|
|
|