403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/playbook/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/playbook/__pycache__/play_context.cpython-311.pyc
�

���cv9���ddlmZmZmZeZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZe��Zd	gZd
ZdZGd�d	e��Zd
S)�)�absolute_import�division�print_function)�	constants)�context)�paramiko)�FieldAttribute)�Base)�Display)�check_for_controlpersist�PlayContext)
�become�become_user�become_pass�
become_method�become_flags�
connection�docker_extra_args�delegate_to�no_log�remote_user)�ansible_connection�ansible_user�ansible_host�ansible_port�ansible_docker_extra_args�ansible_ssh_host�ansible_ssh_pass�ansible_ssh_port�ansible_ssh_user�ansible_ssh_private_key_file�ansible_ssh_pipelining�ansible_ssh_executablec���eZdZdZedej���Zed���Zedej	���Z
ed���Zed���Zedej
���Zed���Zedej���Zedej���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zedej���Zedej���Zed���Zede ���Z!ede ���Z"ed���Z#edd���Z$edd���Z%e&d	���Z'e'j(d
���Z'd�fd�	Z)d
�Z*d�Z+d�Z,d�Z-d�Z.d�Z/�xZ0S)r
z�
    This class is used to consolidate the connection information for
    hosts in a play and child tasks, where the task may override some
    connection/authentication information.
    �string)�isa�default)r&�int�bool�setFc�H�t�dd���|jS�NzYPlayContext.verbosity is deprecated, use ansible.utils.display.Display.verbosity instead.gq=
ףp@)�version��display�
deprecated�_internal_verbosity��selfs �B/usr/lib/python3.11/site-packages/ansible/playbook/play_context.py�	verbosityzPlayContext.verbosityxs0�����g��	�	
�	
�	
��'�'�c�L�t�dd���||_dSr,r.)r3�values  r4r5zPlayContext.verbosity�s5�����g��	�	
�	
�	
�$)�� � � r6Nc���tt|�����|�i}|�dd��|_|�dd��|_d|_d|_d|_||_	tjr|���nd|_
|r|�|��dSdS)N�	conn_pass�rr)�superr
�__init__�get�passwordr�_become_plugin�prompt�success_key�connection_lockfdr�CLIARGS�set_attributes_from_clir1�set_attributes_from_play)r3�play�	passwordsrC�	__class__s    �r4r=zPlayContext.__init__�s����
	�k�4� � �)�)�+�+�+����I�!�
�
�k�2�6�6��
�$�=�=���;�;���"���������"3����?�	)��(�(�*�*�*�*�'(�D�$��	0��)�)�$�/�/�/�/�/�	0�	0r6c���tj�|j|j��}|D]E}|rA||�d��}|r$t
|||�|�����FdS)N�name)�C�config�get_configuration_definitions�plugin_type�
_load_namer>�setattr�
get_option)r3�plugin�options�option�flags     r4�set_attributes_from_pluginz&PlayContext.set_attributes_from_plugin�s����(�8�8��9K�V�M^�_�_���	A�	A�F��
A��v��*�*�6�2�2���A��D�$��(9�(9�$�(?�(?�@�@�@��		A�	Ar6c��|j|_dS�N)�force_handlers)r3rGs  r4rFz$PlayContext.set_attributes_from_play�s��"�1����r6c�h�tj�dd��r$ttjd��|_tj�d��|_tj�d��|_tj�dd��|_dS)z�
        Configures this connection information instance with data from
        options specified by the user on the command line. These have a
        lower precedence than those set on the play or host.
        �timeoutF�private_key_filer5�
start_at_taskN)rrDr>r(r\r]r1r^r2s r4rEz#PlayContext.set_attributes_from_cli�s����?���y�%�0�0�	;��w��y�9�:�:�D�L�!(�� 3� 3�4F� G� G���#*�?�#6�#6�{�#C�#C�� �%�_�0�0��$�G�G����r6c�	�|���}tD]&}t||d��x}�t|||���'|j��||�|j��}|�dt�����|t����}tj	}	tj
�d��D]}
|
|vr
||
}	n�d|	zftj
�d��zD]}||vrn#�	t�d|z��||d<d|	zftj
�d	��zD]}||vrn�	|	d
krd|d<ntj
|d<d
|	zftj
�d��zD]}
|
|vr
||
rn�|jp|j|d<nXt��}tj
�d��D]*}||vr$t|d|�|�����+g}tj
���D]�\}}|D]�}||vr�|j�Ft!|t��r0||vr,t||||��|�|���T||vr,t||||��|�|������tj
�d��D]}||vrn�	|j�*tj
�t'tj
��|_t)|��dkr�tj
�d��D]}||vrn�	|jtjv}|�d��tjv}|r|rt|dd��n4t|dd��dkr|r|st|dtj	��|jdkr|js|j|_|jdkr<|�d��|_t�d|jz��|j�tj|_|j�|j|_|j�|j|_|S)a7
        Sets attributes from the task if they are set, which will override
        those from the play.

        :arg task: the task object with the parameters that were set on it
        :arg variables: variables from inventory
        :arg templar: templar instance if templating variables is needed
        N�ansible_delegated_varsrzansible_%s_host�remote_addrzbno remote address found for delegated host %s
using its name, so success depends on DNS resolutionrzansible_%s_port�port�winrmibrzansible_%s_userrr�
executablerr�inventory_hostname�localz�The "%s" connection plugin has an improperly configured remote target value, forcing "inventory_hostname" templated value instead of the string)�copy�TASK_ATTRIBUTE_OVERRIDES�getattrrQr�templater>�dictrL�DEFAULT_TRANSPORT�MAGIC_VARIABLE_MAPPINGr/�debug�DEFAULT_REMOTE_PORTr�items�
isinstance�appendrbr(�lenra�	LOCALHOSTr�connection_user�warningr�DEFAULT_NO_LOG�
check_mode�diff)r3�task�	variables�templar�new_info�attr�attr_val�delegated_host_name�delegated_vars�delegated_transport�
transport_var�address_var�port_var�user_var�exe_var�attrs_considered�variable_names�
variable_name�become_pass_name�connection_type�remote_addr_local�inv_hostname_locals                      r4�set_task_and_variable_overridez*PlayContext.set_task_and_variable_override�sT���9�9�;�;��-�	2�	2�D�#�D�$��5�5�5��B���$��1�1�1����'�#*�"2�"2�4�3C�"D�"D��&�]�]�+C�T�V�V�L�L�P�P�Qd�fj�fl�fl�m�m�N�"#�"5��!"�!9�!=�!=�l�!K�!K�
�
�
� �N�2�2�*8��*G�'��E�3�!2�4G� G�I�A�Ld�Lh�Lh�iv�Lw�Lw�w�
E�
E���.�0�0��E�1��
�
�D�GZ�Z�[�[�[�1D��~�.�/�1D�D�F��Ia�Ie�Ie�fl�Im�Im�m�
K�
K���~�-�-��E�.�'�'�1�1�59�N�>�2�2�56�5J�N�>�2�/�1D�D�F��Ia�Ie�Ie�fs�It�It�t�
V�
V���~�-�-�.��2J�-��E��15�1A�1U�T�EU��~�.��!�V�V�N��3�7�7��E�E�
L�
L���i�'�'��H�l�I�M�M�'�4J�4J�K�K�K����&'�&>�&D�&D�&F�&F�	2�	2�"�T�>�!/�

2�

2�
��+�+�+���#�/�!�.�$�7�7�6�M�^�<[�<[���$��}�0M�N�N�N�(�/�/��5�5�5��"�i�/�/��H�d�I�m�,D�E�E�E�$�+�+�D�1�1�1��

2�!"� 8� <� <�]� K� K�	�	���9�,�,���-��=� �Q�%:�%F��� 5�6�6�H�M��~����"�"�$%�#;�#?�#?��#M�#M�	
I�	
I��"�n�4�4��E�5�%-�$8�A�K�$G�!�%3�%7�%7�8L�%M�%M�QR�Q\�%\�"�$�I�);�I��H�l�G�<�<�<�<��X�|�T�:�:�g�E�E�O`�E�hz�E��H�l�A�4G�H�H�H���'�)�)��+�
@�+3�+?��(���#7�7�7�#,�=�=�1E�#F�#F�H� ��O�O�a�ck�cv�w�
x�
x�
x��?�"��.�H�O��?�&�"&�/�H���9� � �I�H�M��r6c��||_dSrY)r@)r3rSs  r4�set_become_pluginzPlayContext.set_become_pluginOs��$����r6c��tj���D];\}}	d|vr�t||��}|D]
}||vr|�|||<��,#t$rY�8wxYwdS)z�
        Adds 'magic' variables relating to connections to the variable dictionary provided.
        In case users need to access from the play, this is a legacy from runner.
        rN)rLrmrpri�AttributeError)r3r{�prop�var_list�var_val�var_opts      r4�update_varszPlayContext.update_varsRs��� �6�<�<�>�>�
	�
	�N�D�(�	
��t�#�#��!�$��-�-��'�5�5�G��i�/�/�G�4G�-4�	�'�*��5��"�
�
�
���
����
	�
	s�A� A�
A�A)NNN)1�__name__�
__module__�__qualname__�__doc__r	rL�DEFAULT_MODULE_COMPRESSION�module_compression�shell�DEFAULT_EXECUTABLErdrar?�DEFAULT_TIMEOUTr\ru�DEFAULT_PRIVATE_KEY_FILEr]�ANSIBLE_PIPELINING�
pipelining�
network_osrrCrrrr�DEFAULT_BECOME_EXE�
become_exe�DEFAULT_BECOME_FLAGSrrAr*�	only_tags�	skip_tagsr^�steprZ�propertyr5�setterr=rWrFrEr�r�r��
__classcell__)rIs@r4r
r
Fs����������(��H�a�>Z�[�[�[���N�x�(�(�(�E���H�a�6J�K�K�K�J�!�.�X�.�.�.�K��~�(�+�+�+�H��n���0A�B�B�B�G�$�n��2�2�2�O�%�~�(�A�<V�W�W�W����F�A�4H�I�I�I�J� ��H�-�-�-�J�'��8�4�4�4��'��5�1�1�1���^��
'�
'�
'�F�"�N�x�0�0�0�M� �.�X�.�.�.�K� �.�X�.�.�.�K���H�a�6J�K�K�K�J�!�>�h��8N�O�O�O�L�
�^��
)�
)�
)�F���5�#�6�6�6�I���5�#�6�6�6�I�"�N�x�0�0�0�M��>�f�e�4�4�4�D�$�^���>�>�>�N�
�(�(��X�(���)�)���)�0�0�0�0�0�0�<	A�	A�	A�2�2�2�H�H�H�"H�H�H�T%�%�%�������r6N)�
__future__rrr�type�
__metaclass__�ansiblerrLr�$ansible.module_utils.compat.paramikor�ansible.playbook.attributer	�ansible.playbook.baser
�ansible.utils.displayr�ansible.utils.ssh_functionsrr/�__all__rh�
RESET_VARSr
�r6r4�<module>r�s��*C�B�B�B�B�B�B�B�B�B��
�"�"�"�"�"�"�������9�9�9�9�9�9�5�5�5�5�5�5�&�&�&�&�&�&�)�)�)�)�)�)�@�@�@�@�@�@��'�)�)���/�����
�$\�\�\�\�\�$�\�\�\�\�\r6

Youez - 2016 - github.com/yon3zu
LinuXploit