Displaying task_path on task start when verbosity is more than 3

pull/12663/head
Juraci 9 years ago
parent 254d6be520
commit e52950a939

@ -110,6 +110,10 @@ class CallbackModule(CallbackBase):
def v2_playbook_on_task_start(self, task, is_conditional): def v2_playbook_on_task_start(self, task, is_conditional):
self._display.banner("TASK [%s]" % task.get_name().strip()) self._display.banner("TASK [%s]" % task.get_name().strip())
if self._display.verbosity > 3:
path = task.get_path()
if path:
self._display.display("task path: %s" % path, color='cyan')
def v2_playbook_on_cleanup_task_start(self, task): def v2_playbook_on_cleanup_task_start(self, task):
self._display.banner("CLEANUP TASK [%s]" % task.get_name().strip()) self._display.banner("CLEANUP TASK [%s]" % task.get_name().strip())

Loading…
Cancel
Save