upd ansi: add tg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-11-09 14:26:50 +10:00
parent d089ed821a
commit 874ff1094e

View File

@ -167,8 +167,9 @@ class CallbackModule(CallbackBase):
hosts = sorted(stats.processed.keys())
t = prettytable.PrettyTable(['Host', 'Ok', 'Changed', 'Unreachable',
'Failures', 'Rescued', 'Ignored'])
t = prettytable.PrettyTable(['Host and state'] )
#, 'Ok', 'Changed', 'Unreachable',
# 'Failures', 'Rescued', 'Ignored'])
failures = False
unreachable = False
@ -181,7 +182,8 @@ class CallbackModule(CallbackBase):
if s['unreachable'] > 0:
unreachable = True
t.add_row([h] + [s[k] for k in ['ok', 'changed', 'unreachable',
t.add_row([h] )
t.add_row( [s[k] for k in ['ok', 'changed', 'unreachable',
'failures', 'rescued', 'ignored']])
msg = []