Handle runner items from ansible v2

Also denote whether the trailing runner_on_ was a loop event
This commit is contained in:
Matthew Jones
2016-03-22 12:27:23 -04:00
parent 1d980affb2
commit 0e2184902e
2 changed files with 21 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ class CallbackReceiver(object):
'playbook_on_import_for_host',
'playbook_on_not_import_for_host'):
parent = job_parent_events.get('playbook_on_play_start', None)
elif message['event'].startswith('runner_on_'):
elif message['event'].startswith('runner_on_') or message['event'].startswith('runner_item_on_'):
list_parents = []
list_parents.append(job_parent_events.get('playbook_on_setup', None))
list_parents.append(job_parent_events.get('playbook_on_task_start', None))