From 21859c06b97d4c928d1ce50c3bf6f1a097766137 Mon Sep 17 00:00:00 2001 From: Allyson Bowles Date: Wed, 17 Oct 2018 23:07:06 -0500 Subject: [PATCH] Add output for skipped tasks --- lib/ansible/plugins/callback/unixy.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/ansible/plugins/callback/unixy.py b/lib/ansible/plugins/callback/unixy.py index 2b332b098c4..3b7bbfeaf11 100644 --- a/lib/ansible/plugins/callback/unixy.py +++ b/lib/ansible/plugins/callback/unixy.py @@ -109,6 +109,14 @@ class CallbackModule(CallbackBase): self._display.display(msg) + def v2_runner_on_skipped(self, result, ignore_errors=False): + self._preprocess_result(result) + display_color = C.COLOR_SKIP + msg = "skipped" + + task_result = self._process_result_output(result, msg) + self._display.display(" " + task_result, display_color) + def v2_runner_on_failed(self, result, ignore_errors=False): self._preprocess_result(result) display_color = C.COLOR_ERROR @@ -128,6 +136,9 @@ class CallbackModule(CallbackBase): task_result = self._process_result_output(result, msg) self._display.display(" " + task_result, display_color) + def v2_runner_item_on_skipped(self, result): + self.v2_runner_on_skipped(result) + def v2_runner_item_on_failed(self, result): self.v2_runner_on_failed(result)