|
|
|
@ -72,8 +72,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
super(CallbackModule, self).__init__(display)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def playbook_on_task_start(self, name, is_conditional):
|
|
|
|
|
def _record_task(self, name):
|
|
|
|
|
"""
|
|
|
|
|
Logs the start of each task
|
|
|
|
|
"""
|
|
|
|
@ -84,6 +83,12 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
self.current = name
|
|
|
|
|
self.stats[self.current] = time.time()
|
|
|
|
|
|
|
|
|
|
def playbook_on_task_start(self, name, is_conditional):
|
|
|
|
|
self._record_task(name)
|
|
|
|
|
|
|
|
|
|
def v2_playbook_on_handler_task_start(self, task):
|
|
|
|
|
self._record_task('HANDLER: ' + task.name)
|
|
|
|
|
|
|
|
|
|
def playbook_on_setup(self):
|
|
|
|
|
self._display.display(tasktime())
|
|
|
|
|
|
|
|
|
|