AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.137.185.59
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/ansible/plugins/callback/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pyc
�
��\c@`s�ddlmZmZmZeZdZddlZddlZddl	Z	ddl
mZddlm
Z
ddlmZddlmZdefd	��YZdS(
i(tabsolute_importtdivisiontprint_functions�
    callback: log_plays
    type: notification
    short_description: write playbook output to log file
    version_added: historical
    description:
      - This callback writes playbook output to a file per host in the `/var/log/ansible/hosts` directory
      - "TODO: make this configurable"
    requirements:
     - Whitelist in configuration
     - A writeable /var/log/ansible/hosts directory by the user executing Ansible on the controller
N(tMutableMapping(tto_bytes(tAnsibleJSONEncoder(tCallbackBasetCallbackModulecB`s�eZdZdZdZdZeZdZdZ	d�Z
d�Zed�Z
d	�Zdd
�Zd�Zd�Zd
�Zd�ZRS(sD
    logs playbook results, per host, in /var/log/ansible/hosts
    g@tnotificationt	log_playss%b %d %Y %H:%M:%Ss#%(now)s - %(category)s - %(data)s

cC`s9tt|�j�tjjd�s5tjd�ndS(Ns/var/log/ansible/hosts(tsuperRt__init__tostpathtexiststmakedirs(tself((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pyR2sc		C`st|t�r�d|kr$d}q�|j�}|jdd�}tj|dt�}|dk	r�tj|�d|}q�ntj	j
d|�}tj|j
tj��}t|jtd|d|d	|��}t|d
��}|j|�WdQXdS(Nt_ansible_verbose_overridetomittedt
invocationtclss => %s s/var/log/ansible/hoststnowtcategorytdatatab(t
isinstanceRtcopytpoptNonetjsontdumpsRRR
tjointtimetstrftimetTIME_FORMATt	localtimeRt
MSG_FORMATtdicttopentwrite(	RthostRRRR
Rtmsgtfd((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytlog9s	(cC`s|j|d|�dS(NtFAILED(R+(RR(trest
ignore_errors((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytrunner_on_failedLscC`s|j|d|�dS(NtOK(R+(RR(R-((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytrunner_on_okOscC`s|j|dd�dS(NtSKIPPEDs...(R+(RR(titem((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytrunner_on_skippedRscC`s|j|d|�dS(NtUNREACHABLE(R+(RR(R-((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytrunner_on_unreachableUscC`s|j|d|�dS(NtASYNC_FAILED(R+(RR(R-tjid((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytrunner_on_async_failedXscC`s|j|d|�dS(NtIMPORTED(R+(RR(t
imported_file((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytplaybook_on_import_for_host[scC`s|j|d|�dS(NtNOTIMPORTED(R+(RR(tmissing_file((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pytplaybook_on_not_import_for_host^sN(t__name__t
__module__t__doc__tCALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMEtTruetCALLBACK_NEEDS_WHITELISTR"R$RR+tFalseR/R1RR4R6R9R<R?(((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pyR&s 						(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONRR RtcollectionsRtansible.module_utils._textRtansible.parsing.ajsonRtansible.plugins.callbackRR(((sF/usr/lib/python2.7/site-packages/ansible/plugins/callback/log_plays.pyt<module>s


Anon7 - 2022
AnonSec Team