take delegated vars before removing them

fixes #17455
This commit is contained in:
Brian Coca 2016-09-09 09:54:10 -04:00
parent 2daf527e63
commit cd2f60e11a

View file

@ -60,8 +60,8 @@ class CallbackModule(CallbackBase):
def v2_runner_on_ok(self, result):
self._clean_results(result._result, result._task.action)
delegated_vars = result._result.get('_ansible_delegated_vars', None)
self._clean_results(result._result, result._task.action)
if result._task.action in ('include', 'include_role'):
return
elif result._result.get('changed', False):