mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Enhance logging, way to gate verbosity levels pending.
This commit is contained in:
parent
05e27a419c
commit
b5c62ec068
5 changed files with 28 additions and 11 deletions
|
|
@ -43,6 +43,12 @@ class PlaybookCallbacks(object):
|
|||
def on_task_start(self, name, is_conditional):
|
||||
print utils.task_start_msg(name, is_conditional)
|
||||
|
||||
def on_setup_primary(self):
|
||||
print "SETUP PHASE ****************************\n"
|
||||
|
||||
def on_setup_secondary(self):
|
||||
print "\nVARIABLE IMPORT PHASE ******************\n"
|
||||
|
||||
def on_unreachable(self, host, msg):
|
||||
print "unreachable: [%s] => %s" % (host, msg)
|
||||
|
||||
|
|
@ -52,14 +58,11 @@ class PlaybookCallbacks(object):
|
|||
def on_ok(self, host, host_result):
|
||||
print "ok: [%s]\n" % (host)
|
||||
|
||||
def on_setup_primary(self):
|
||||
print "preparing nodes..."
|
||||
|
||||
def on_setup_secondary(self):
|
||||
print "preparing conditional imports..."
|
||||
|
||||
def on_import_for_host(self, host, imported_file):
|
||||
pass
|
||||
print "%s: importing %s" % (host, imported_file)
|
||||
|
||||
def on_not_import_for_host(self, host, missing_file):
|
||||
print "%s: not importing file: %s" % (host, missing_file)
|
||||
|
||||
def on_play_start(self, pattern):
|
||||
print "PLAY [%s] ****************************\n" % pattern
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue