AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.223.172.181
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/profile_roles.pyo
�
��\c@`s�ddlmZmZmZeZdZddlZddlZddl	m
Z
ddlmZej�Z
ad�Zdd�Zd	�Zd
�Zde
fd��YZdS(
i(tabsolute_importtdivisiontprint_functions
    callback: profile_roles
    type: aggregate
    short_description: adds timing information to roles
    version_added: "2.4"
    description:
        - This callback module provides profiling for ansible roles.
    requirements:
      - whitelisting in configuration
N(tCallbackBase(treducecC`s3d�}dtt||dgdddg��S(NcS`stt|d|��|dS(Nii(tlisttdivmod(tlltb((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytrediv ss%d:%02d:%02d.%03di�i<(ttupleR(ttR	((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytsecondsToStrs	t*cC`sbt|�dkrd}nd|}dt|�}|dkrJd}n||}d||fS(NiiOs%s is%s%s (tlen(tmsgtfchartwidthtfiller((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytfilled's	
	
cC`sZ|jdk	rVtj�|j|j|j|j<|j|jc|j|j7<ndS(N(tcurrenttNonettimetstatsttotals(tself((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyt	timestamp3s$cC`satjd�}ttj�t�}ttj�t�}tj�atd||d|f�S(Ns%A %d %B %Y  %H:%M:%S %zs%s (%s)%s%st is       (RtstrftimeRttntt0R(ttime_currentttime_elapsedttime_total_elapsed((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyttasktime9stCallbackModulecB`s\eZdZdZdZdZeZd�Zd�Z	d�Z
d�Zd�Zd	�Z
RS(
sD
    This callback module provides profiling for ansible roles.
    g@t	aggregatet
profile_rolescC`s>tj�|_tj�|_d|_tt|�j�dS(N(	tcollectionstCounterRRRRtsuperR#t__init__(R((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyR)Ls	cC`s^|jjt��t|�|jr8|jj|_n|j|_tj�|j	|j<dS(s-
        Logs the start of each task
        N(
t_displaytdisplayR"Rt_rolet
_role_nameRtactionRR(Rttask((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyt_record_taskRs
	cC`s|j|�dS(N(R0(RR/tis_conditional((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytv2_playbook_on_task_start`scC`s|j|�dS(N(R0(RR/((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyt!v2_playbook_on_handler_task_startcscC`s|jjt��dS(N(R*R+R"(R((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytplaybook_on_setupfscC`s�|jjt��|jjtddd��t|�t|jj��}xN|jj�D]=}dj	|dddj	|d��}|jj|�q^Wdj	d	dj	|��}|jjtddd
��|jj|�dS(NtRt=u{0:-<70}{1:->9}iu u
 {0:.02f}siutotal t~(
R*R+R"RRtsumRtvaluestmost_commontformat(RRt
total_timetresultRt	msg_total((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pytplaybook_on_statsis
'(t__name__t
__module__t__doc__tCALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMEtTruetCALLBACK_NEEDS_WHITELISTR)R0R2R3R4R?(((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyR#Cs					(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONR&Rtansible.plugins.callbackRtansible.module_utils.six.movesRRRRRRR"R#(((sJ/usr/lib/python2.7/site-packages/ansible/plugins/callback/profile_roles.pyt<module>s				

Anon7 - 2022
AnonSec Team