Surface module debug (-D) to /usr/bin/ansible also

This commit is contained in:
Michael DeHaan 2012-03-31 11:45:29 -04:00
commit 2511992659
4 changed files with 18 additions and 0 deletions

View file

@ -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: