mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
now default shows time taken when -vv or above
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user