Handle playbook_on_include events from v2 ansible

This commit is contained in:
Matthew Jones 2015-10-20 11:17:15 -04:00
parent bcc2cb7914
commit b579b76099
2 changed files with 3 additions and 0 deletions

View File

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

View File

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