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)
if not self._run_play(play):
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
results = {}