1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Add support for runner_on_start

This will be available in ansible 2.8
This commit is contained in:
Matthew Jones 2018-10-30 13:23:55 -04:00
parent ddda6b3d21
commit 673068464a
No known key found for this signature in database
GPG Key ID: EED42EEB8B369E1E

View File

@ -475,6 +475,15 @@ class BaseCallbackModule(CallbackBase):
with self.capture_event_data('runner_retry', **event_data):
super(BaseCallbackModule, self).v2_runner_retry(result)
def v2_runner_on_start(self, host, task):
event_data = dict(
host=host,
task=task
)
with self.capture_event_data('runner_on_start', **event_data):
super(BaseCallbackModule, self).v2_runner_on_start(host, task)
class AWXDefaultCallbackModule(BaseCallbackModule, DefaultCallbackModule):