HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible/plugins/callback/__pycache__/minimal.cpython-39.pyc
a

�)g�@sHddlmZmZmZeZdZddlmZddl	m
ZGdd�de�ZdS)�)�absolute_import�division�print_functiona
    name: minimal
    type: stdout
    short_description: minimal Ansible screen output
    version_added: historical
    description:
        - This is the default output callback used by the ansible command (ad-hoc)
    extends_documentation_fragment:
      - result_format_callback
)�CallbackBase)�	constantsc@sNeZdZdZdZdZdZdd�Zddd	�Zd
d�Z	dd
�Z
dd�Zdd�ZdS)�CallbackModulez�
    This is the default callback interface, which simply prints messages
    to stdout when new callback events are received.
    g@�stdoutZminimalcCsNd|||�dd�f}||�dd�7}||�dd�7}||�dd�7}|dS)	z$ output the result of a command run z%s | %s | rc=%s >>
�rc���r��stderr�msg�
)�get)�self�host�resultZcaption�buf�r�D/usr/lib/python3.9/site-packages/ansible/plugins/callback/minimal.py�_command_generic_msg#s
z#CallbackModule._command_generic_msgFcCs�|�|j�|�|j�|jjtjvrVd|jvrV|jj|�	|j
��|jd�tjd�n,|jjd|j
��|j
|jdd�ftjd�dS)NZ
module_stderrZFAILED��colorz%s | FAILED! => %s���indent)Z_handle_exception�_result�_handle_warnings�_task�action�C�MODULE_NO_JSON�_display�displayr�_host�get_nameZCOLOR_ERROR�
_dump_results)rr�
ignore_errorsrrr�v2_runner_on_failed-s
&z"CallbackModule.v2_runner_on_failedcCs�|�|j|jj�|�|j�|j�dd�r8tj}d}n
tj}d}|jjtj	vr~d|jvr~|j
j|�|j
��|j|�|d�n,|j
jd|j
��||j|jdd	�f|d�dS)
NZchangedFZCHANGED�SUCCESSZansible_job_idrz
%s | %s => %srr)Z_clean_resultsrrrrrr Z
COLOR_CHANGEDZCOLOR_OKr!r"r#rr$r%r&)rrr�staterrr�v2_runner_on_ok7s$zCallbackModule.v2_runner_on_okcCs |jjd|j��tjd�dS)Nz%s | SKIPPEDr)r"r#r$r%r Z
COLOR_SKIP�rrrrr�v2_runner_on_skippedHsz#CallbackModule.v2_runner_on_skippedcCs0|jjd|j��|j|jdd�ftjd�dS)Nz%s | UNREACHABLE! => %srrr)r"r#r$r%r&rr ZCOLOR_UNREACHABLEr,rrr�v2_runner_on_unreachableKsz'CallbackModule.v2_runner_on_unreachablecCs0d|jvr,|jdr,|j�|�|jd��dS)N�diff)rr"r#Z	_get_diffr,rrr�v2_on_file_diffNszCallbackModule.v2_on_file_diffN)F)
�__name__�
__module__�__qualname__�__doc__ZCALLBACK_VERSIONZ
CALLBACK_TYPEZ
CALLBACK_NAMErr(r+r-r.r0rrrrrs


rN)
Z
__future__rrr�typeZ
__metaclass__Z
DOCUMENTATIONZansible.plugins.callbackrZansiblerr rrrrr�<module>s