mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Surface module debug (-D) to /usr/bin/ansible also
This commit is contained in:
parent
d7e5b390d5
commit
2511992659
4 changed files with 18 additions and 0 deletions
|
@ -86,6 +86,9 @@ class DefaultRunnerCallbacks(object):
|
|||
def on_ok(self, host, res):
|
||||
pass
|
||||
|
||||
def on_error(self, host, msg):
|
||||
pass
|
||||
|
||||
def on_skipped(self, host):
|
||||
pass
|
||||
|
||||
|
@ -115,6 +118,9 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
|
|||
def on_skipped(self, host):
|
||||
pass
|
||||
|
||||
def on_error(self, host, err):
|
||||
print >>sys.stderr, "stderr: [%s] => %s\n" % (host, err)
|
||||
|
||||
def _on_any(self, host, result):
|
||||
print utils.host_report_msg(host, self.options.module_name, result, self.options.one_line)
|
||||
if self.options.tree:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue