From 4656b6a8465dfc7f1356799f3b291c7f8d39e92a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 14 Sep 2016 11:32:30 -0400 Subject: [PATCH] added msg info to unreachable for oneline callback fixes #17367 --- lib/ansible/plugins/callback/oneline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/oneline.py b/lib/ansible/plugins/callback/oneline.py index c952f5df253..743551fe735 100644 --- a/lib/ansible/plugins/callback/oneline.py +++ b/lib/ansible/plugins/callback/oneline.py @@ -66,7 +66,7 @@ class CallbackModule(CallbackBase): def v2_runner_on_unreachable(self, result): - self._display.display("%s | UNREACHABLE!" % result._host.get_name(), color=C.COLOR_UNREACHABLE) + self._display.display("%s | UNREACHABLE!: %s" % (result._host.get_name(), result._result.get('msg','')), color=C.COLOR_UNREACHABLE) def v2_runner_on_skipped(self, result): self._display.display("%s | SKIPPED" % (result._host.get_name()), color=C.COLOR_SKIP)