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

Reset play attribute on callback plugins when a play fails.

This commit is contained in:
Chris Church 2014-05-15 19:17:36 -04:00
parent 30fae95efe
commit 4e98e3785a

View file

@ -322,8 +322,9 @@ class PlayBook(object):
ansible.callbacks.set_play(self.runner_callbacks, play) ansible.callbacks.set_play(self.runner_callbacks, play)
if not self._run_play(play): if not self._run_play(play):
break break
ansible.callbacks.set_play(self.callbacks, None)
ansible.callbacks.set_play(self.runner_callbacks, None) ansible.callbacks.set_play(self.callbacks, None)
ansible.callbacks.set_play(self.runner_callbacks, None)
# summarize the results # summarize the results
results = {} results = {}