Server IP : 85.214.239.14 / Your IP : 3.148.107.37 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/lib/python3/dist-packages/ansible_collections/ovirt/ovirt/plugins/callback/ |
Upload File : |
#!/usr/bin/python3 from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.callback import CallbackBase # Not only visible to ansible-doc, it also 'declares' the options the plugin # requires and how to configure them. # TODO Fix DOCUMENTATION to pass the ansible-test validate-modules DOCUMENTATION = ''' callback: stdout callback_type: aggregate short_description: Output the log of ansible version_added: "2.0" description: - This callback output the log of ansible play tasks. ''' class CallbackModule(CallbackBase): """ This callback module output the information with a specific style. """ CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'aggregate' CALLBACK_NAME = 'stdout' # only needed if you ship it and don't want to enable by default CALLBACK_NEEDS_WHITELIST = False def __init__(self): # make sure the expected objects are present, calling the base's # __init__ super(CallbackModule, self).__init__() def runner_on_failed(self, host, res, ignore_errors=False): self._display.display('FAILED: %s %s' % (host, res)) def runner_on_ok(self, host, res): self._display.display('OK: %s %s' % (host, res)) def runner_on_skipped(self, host, item=None): self._display.display('SKIPPED: %s' % host) def runner_on_unreachable(self, host, res): self._display.display('UNREACHABLE: %s %s' % (host, res)) def runner_on_async_failed(self, host, res, jid): self._display.display('ASYNC_FAILED: %s %s %s' % (host, res, jid)) def playbook_on_import_for_host(self, host, imported_file): self._display.display('IMPORTED: %s %s' % (host, imported_file)) def playbook_on_not_import_for_host(self, host, missing_file): self._display.display('NOTIMPORTED: %s %s' % (host, missing_file))