Compare commits

...

4 commits

Author SHA1 Message Date
John Wadleigh
1e752d7a75
Merge e0076ebc37 into 5321a9ecb5 2024-09-25 16:11:09 +09:00
John Wadleigh
e0076ebc37 Fixed merge conflicts 2024-09-06 13:27:18 -07:00
John
3abd029b9f Fix missing-final-newline error 2022-09-21 08:38:09 -07:00
John
3d2681aea6 Improve callback output to align header with roles, tasks and play RECAP 2022-09-20 14:38:08 -07:00
3 changed files with 9 additions and 7 deletions

View file

@ -128,8 +128,8 @@ class CallbackModule(CallbackBase):
self._display_tasktime() self._display_tasktime()
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
self._display_tasktime() # Align summary report header with other callback plugin summary
self._display.display(filled("", fchar="=")) self._display.banner("ROLE RECAP")
timestamp(self) timestamp(self)
total_time = sum(self.totals.values()) total_time = sum(self.totals.values())

View file

@ -193,8 +193,8 @@ class CallbackModule(CallbackBase):
self._display_tasktime() self._display_tasktime()
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
self._display_tasktime() # Align summary report header with other callback plugin summary
self._display.display(filled("", fchar="=")) self._display.banner("TASKS RECAP")
timestamp(self) timestamp(self)
self.current = None self.current = None

View file

@ -46,4 +46,6 @@ class CallbackModule(CallbackBase):
def v2_playbook_on_stats(self, stats): def v2_playbook_on_stats(self, stats):
end_time = datetime.utcnow() end_time = datetime.utcnow()
runtime = end_time - self.start_time 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)))