From 4e98e3785acee725b6f70f9f30d179b62662dd10 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 15 May 2014 19:17:36 -0400 Subject: [PATCH] Reset play attribute on callback plugins when a play fails. --- lib/ansible/playbook/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index af28114a208..0232f5b86e8 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -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 = {}