mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Modify /usr/bin/ansible and playbooks to use the new async API.
This commit is contained in:
committed by
Michael DeHaan
parent
ce9a8c9ffc
commit
029fe1273c
@@ -74,12 +74,15 @@ class TestCallbacks(object):
|
||||
def on_play_start(self, pattern):
|
||||
EVENTS.append([ 'play start', [ pattern ]])
|
||||
|
||||
def on_async_confused(self, msg):
|
||||
EVENTS.append([ 'async confused', [ msg ]])
|
||||
def on_async_ok(self, host, res, jid):
|
||||
EVENTS.append([ 'async ok', [ host ]])
|
||||
|
||||
def on_async_poll(self, jid, host, clock, host_result):
|
||||
def on_async_poll(self, host, res, jid, clock):
|
||||
EVENTS.append([ 'async poll', [ host ]])
|
||||
|
||||
def on_async_failed(self, host, res, jid):
|
||||
EVENTS.append([ 'async failed', [ host ]])
|
||||
|
||||
def on_unreachable(self, host, msg):
|
||||
EVENTS.append([ 'failed/dark', [ host, msg ]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user