Coverage for lib/ansible/plugins/callback/full_skip.py : 35%

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) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (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: full_skip type: stdout short_description: suppresses tasks if all hosts skipped description: - Use this plugin when you dont care about any output for tasks that were completly skipped version_added: "2.4" extends_documentation_fragment: - default_callback requirements: - set as stdout in configuation '''
''' This is the default callback interface, which simply prints messages to stdout when new callback events are received. '''
self.outlines = []
self.outlines = []
self.outlines = []
self.display() super(CallbackModule, self).v2_runner_on_failed(result, ignore_errors)
self.outlines = [] self.outlines.append("TASK [%s]" % task.get_name().strip()) if self._display.verbosity >= 2: path = task.get_path() if path: self.outlines.append("task path: %s" % path)
self.display() super(CallbackModule, self).v2_playbook_item_on_ok(result)
self.display() super(CallbackModule, self).v2_runner_on_ok(result)
if len(self.outlines) == 0: return (first, rest) = self.outlines[0], self.outlines[1:] self._display.banner(first) for line in rest: self._display.display(line) self.outlines = [] |