def on_failed(self, host, results): invocation = results.get('invocation', None) if not invocation or invocation.startswith( 'setup ') or invocation.startswith('async_status '): print "failed: [%s] => %s\n" % (host, utils.smjson(results)) else: print "failed: [%s] => %s => %s\n" % (host, invocation, utils.smjson(results))
def on_ok(self, host, host_result): # show verbose output for non-setup module results if --verbose is used if not self.verbose or host_result.get("verbose_override", None) is not None: print "ok: [%s]\n" % (host) else: print "ok: [%s] => %s" % (host, utils.smjson(host_result))
def on_ok(self, host, host_result): # show verbose output for non-setup module results if --verbose is used if not self.verbose or host_result.get("verbose_override",None) is not None: print "ok: [%s]\n" % (host) else: print "ok: [%s] => %s" % (host, utils.smjson(host_result))
def on_failed(self, host, results): print "failed: [%s] => %s\n" % (host, utils.smjson(results))
def on_failed(self, host, results): invocation = results.get('invocation',None) if not invocation or invocation.startswith('setup ') or invocation.startswith('async_status '): print "failed: [%s] => %s\n" % (host, utils.smjson(results)) else: print "failed: [%s] => %s => %s\n" % (host, invocation, utils.smjson(results))