def on_unreachable(self, host, res): if type(res) == dict: res = res.get('msg', '') print "%s | FAILED => %s" % (host, res) if self.options.tree: utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))
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: utils.write_tree_file(self.options.tree, host, utils.bigjson(result))
def on_async_failed(self, host, res, jid): print "<job %s> FAILED on %s => %s"%(jid, host, utils.bigjson(res))
def on_async_ok(self, host, res, jid): print "<job %s> finished on %s => %s"%(jid, host, utils.bigjson(res))
def on_unreachable(self, host, res): if type(res) == dict: res = res.get('msg','') print "%s | FAILED => %s" % (host, res) if self.options.tree: utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))
def on_async_failed(self, host, res, jid): print "<job %s> FAILED on %s => %s" % (jid, host, utils.bigjson(res))
def on_async_ok(self, host, res, jid): print "<job %s> finished on %s => %s" % (jid, host, utils.bigjson(res))
def on_unreachable(self, host, res): print "%s | FAILED => %s" % (host, res) if self.options.tree: utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))