From dd9919342b5a02eae0aa0e23641cbe14b6b0cdf3 Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Mon, 27 May 2013 14:42:55 +0200 Subject: [PATCH] hide magic variables used bin/ansible output 'verbose_override' and 'verbose_always' --- lib/ansible/callbacks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 8f5292c74e4..c00ba6d15fc 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -322,6 +322,10 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): super(CliRunnerCallbacks, self).on_failed(host, res, ignore_errors=ignore_errors) def on_ok(self, host, res): + # hide magic variables used for ansible-playbook + res.pop('verbose_override', None) + res.pop('verbose_always', None) + self._on_any(host,res) super(CliRunnerCallbacks, self).on_ok(host, res)