mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 23:55:19 +01:00
Compare commits
3 commits
afa724ba8a
...
e0076ebc37
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0076ebc37 | ||
|
|
3abd029b9f | ||
|
|
3d2681aea6 |
3 changed files with 9 additions and 7 deletions
|
|
@ -128,8 +128,8 @@ class CallbackModule(CallbackBase):
|
|||
self._display_tasktime()
|
||||
|
||||
def playbook_on_stats(self, stats):
|
||||
self._display_tasktime()
|
||||
self._display.display(filled("", fchar="="))
|
||||
# Align summary report header with other callback plugin summary
|
||||
self._display.banner("ROLE RECAP")
|
||||
|
||||
timestamp(self)
|
||||
total_time = sum(self.totals.values())
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ class CallbackModule(CallbackBase):
|
|||
self._display_tasktime()
|
||||
|
||||
def playbook_on_stats(self, stats):
|
||||
self._display_tasktime()
|
||||
self._display.display(filled("", fchar="="))
|
||||
# Align summary report header with other callback plugin summary
|
||||
self._display.banner("TASKS RECAP")
|
||||
|
||||
timestamp(self)
|
||||
self.current = None
|
||||
|
|
|
|||
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue