From fdea00880bd67600ae0a8b9859628068c07b2a9e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 11 Jul 2015 00:02:40 -0400 Subject: [PATCH] now default shows time taken when -vv or above --- lib/ansible/plugins/callback/default.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py index 00ba9c72c86..5292b74c007 100644 --- a/lib/ansible/plugins/callback/default.py +++ b/lib/ansible/plugins/callback/default.py @@ -70,6 +70,8 @@ class CallbackModule(CallbackBase): if 'verbose_always' in result._result: indent = 4 del result._result['verbose_always'] + if self._display.verbosity >= 2 and 'delta' in result._result: + msg += " [time: %s]" % (result._result['delta']) msg += " => %s" % json.dumps(result._result, indent=indent, ensure_ascii=False) self._display.display(msg, color=color)