diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 39d3a8d4428..96f213cd6de 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -392,6 +392,7 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): def on_unreachable(self, host, res): if type(res) == dict: res = res.get('msg','') + res = to_bytes(res) display("%s | FAILED => %s" % (host, res), stderr=True, color='red', runner=self.runner) if self.options.tree: utils.write_tree_file(