Reset play attribute on callback plugins when a play fails.
This commit is contained in:
parent
30fae95efe
commit
4e98e3785a
1 changed files with 3 additions and 2 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue