From 4938b98e4eebe13ea573d59af85d776b9a26c561 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Mon, 21 Mar 2016 14:59:57 +0100 Subject: [PATCH] For `actionable` cb plugin also hide ok for itemized results The purpose of the `actionable` callback plugin is to hide uninteresting results. Also hide the ok results when the task was itemized. --- lib/ansible/plugins/callback/actionable.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/callback/actionable.py b/lib/ansible/plugins/callback/actionable.py index 32ffb77a44c..15bd8ca8353 100644 --- a/lib/ansible/plugins/callback/actionable.py +++ b/lib/ansible/plugins/callback/actionable.py @@ -50,8 +50,6 @@ class CallbackModule(CallbackModule_default): if result._result.get('changed', False): self.display_task_banner() self.super_ref.v2_runner_on_ok(result) - else: - pass def v2_runner_on_unreachable(self, result): self.display_task_banner() @@ -64,8 +62,9 @@ class CallbackModule(CallbackModule_default): pass def v2_runner_item_on_ok(self, result): - self.display_task_banner() - self.super_ref.v2_runner_item_on_ok(result) + if result._result.get('changed', False): + self.display_task_banner() + self.super_ref.v2_runner_item_on_ok(result) def v2_runner_item_on_skipped(self, result): pass