Coverage for lib/ansible/plugins/callback/actionable.py : 38%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# (c) 2015, Andrew Gaffney <andrew@agaffney.org> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
callback: actionable type: stdout short_description: shows only items that need attention description: - Use this callback when you dont care about OK nor Skipped. - This callback suppresses any non Failed or Changed status. version_added: "2.1" extends_documentation_fragment: - default_callback requirements: - set as stdout callback in configuration '''
self.super_ref = super(CallbackModule, self) self.super_ref.__init__() self.last_task = None self.shown_title = False
self.super_ref.v2_playbook_on_handler_task_start(task) self.shown_title = True
self.last_task = task self.shown_title = False
if not self.shown_title: self.super_ref.v2_playbook_on_task_start(self.last_task, None) self.shown_title = True
self.display_task_banner() self.super_ref.v2_runner_on_failed(result, ignore_errors)
if result._result.get('changed', False): self.display_task_banner() self.super_ref.v2_runner_on_ok(result)
self.display_task_banner() self.super_ref.v2_runner_on_unreachable(result)
pass
pass
if result._result.get('changed', False): self.display_task_banner() self.super_ref.v2_runner_item_on_ok(result)
pass
self.display_task_banner() self.super_ref.v2_runner_item_on_failed(result) |