make callbacks modular

This commit is contained in:
Michael DeHaan 2012-08-18 19:43:08 -04:00
commit 3017dc92d9
3 changed files with 143 additions and 42 deletions

View file

@ -127,6 +127,7 @@ def main(args):
pb.run()
hosts = sorted(pb.stats.processed.keys())
print callbacks.banner("PLAY RECAP")
playbook_cb.on_stats(pb.stats)
for h in hosts:
t = pb.stats.summarize(h)
print "%-30s : %s %s %s %s " % (