Improve callback output to align header with roles, tasks and play RECAP

This commit is contained in:
John
2022-09-20 14:38:08 -07:00
committed by Hideki Saito
parent 0821768bcb
commit afa724ba8a
4 changed files with 14 additions and 3 deletions

View File

@@ -46,4 +46,6 @@ class CallbackModule(CallbackBase):
def v2_playbook_on_stats(self, stats):
end_time = datetime.utcnow()
runtime = end_time - self.start_time
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds" % (self.days_hours_minutes_seconds(runtime)))
# Align summary report header with other callback plugin summary
self._display.banner("PLAYBOOK RECAP")
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds\n\r" % (self.days_hours_minutes_seconds(runtime)))