1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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