From f89abc705b7009d6ddd8b647fc1b5d3b7433d50f Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 21 Dec 2016 11:36:09 -0600 Subject: [PATCH] Also fix default callback to use ignore_errors param Rather than the value in the task, which may not be templated. Related to #18289 (cherry picked from commit d70d279c4ea948fcdbe6f6b6e4e2fce696ed2f1b) --- lib/ansible/plugins/callback/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py index 1ae2eadd8f3..19e19286cf8 100644 --- a/lib/ansible/plugins/callback/default.py +++ b/lib/ansible/plugins/callback/default.py @@ -65,7 +65,7 @@ class CallbackModule(CallbackBase): else: self._display.display("fatal: [%s]: FAILED! => %s" % (result._host.get_name(), self._dump_results(result._result)), color=C.COLOR_ERROR) - if result._task.ignore_errors: + if ignore_errors: self._display.display("...ignoring", color=C.COLOR_SKIP) def v2_runner_on_ok(self, result):