1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

show task path on vv and above

This commit is contained in:
Brian Coca 2016-02-21 16:22:11 -05:00
parent 6d7f81823f
commit e35b1cf154

View file

@ -126,7 +126,7 @@ class CallbackModule(CallbackBase):
args = ', '.join(('%s=%s' % a for a in task.args.items())) args = ', '.join(('%s=%s' % a for a in task.args.items()))
args = ' %s' % args args = ' %s' % args
self._display.banner("TASK [%s%s]" % (task.get_name().strip(), args)) self._display.banner("TASK [%s%s]" % (task.get_name().strip(), args))
if self._display.verbosity > 2: if self._display.verbosity >= 2:
path = task.get_path() path = task.get_path()
if path: if path:
self._display.display("task path: %s" % path, color=C.COLOR_DEBUG) self._display.display("task path: %s" % path, color=C.COLOR_DEBUG)