Code cleanup for playbooks, also added 'on_skipped' callback

This commit is contained in:
Michael DeHaan 2012-03-23 20:51:15 -04:00
commit 6ab615c724
5 changed files with 159 additions and 163 deletions

View file

@ -60,6 +60,9 @@ class PlaybookCallbacks(object):
else:
print "ok: [%s] => %s\n" % (host, invocation)
def on_skipped(self, host):
print "skipping: [%s]\n" % host
def on_import_for_host(self, host, imported_file):
print "%s: importing %s" % (host, imported_file)