diff --git a/awx/main/management/commands/run_callback_receiver.py b/awx/main/management/commands/run_callback_receiver.py index e8566c4f6c..cccf07b4db 100644 --- a/awx/main/management/commands/run_callback_receiver.py +++ b/awx/main/management/commands/run_callback_receiver.py @@ -130,6 +130,7 @@ class CallbackReceiver(object): 'playbook_on_task_start', 'playbook_on_no_hosts_matched', 'playbook_on_no_hosts_remaining', + 'playbook_on_include', 'playbook_on_import_for_host', 'playbook_on_not_import_for_host'): parent = job_parent_events.get('playbook_on_play_start', None) diff --git a/awx/plugins/callback/job_event_callback.py b/awx/plugins/callback/job_event_callback.py index 2369868c87..9fdfa4e23a 100644 --- a/awx/plugins/callback/job_event_callback.py +++ b/awx/plugins/callback/job_event_callback.py @@ -426,6 +426,8 @@ class JobCallbackModule(BaseCallbackModule): def v2_playbook_on_stats(self, stats): self.playbook_on_stats(stats) + def v2_playbook_on_include(self, included_file): + self._log_event('playbook_on_include', included_file=included_file) class AdHocCommandCallbackModule(BaseCallbackModule): '''