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