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__/task_include.cpython-311.opt-1.pyc
�

���c����ddlmZmZmZeZddlmZddl	m
Z
ddlmZddl
mZddlmZddlmZdgZe��ZGd	�de��ZdS)
�)�absolute_import�division�print_functionN)�AnsibleParserError)�Block)�Task)�Display)�Sentinel�TaskIncludec����eZdZdZed��Zed��Ze�e��Zed��Z	d�fd�	Z
edd���Zd�Z
�fd	�Zd�fd�	Z�fd�Zd
�Z�xZS)rz�
    A task include is derived from a regular task to handle the special
    circumstances related to the `- include: ...` task.
    )�file�_raw_params)�apply)�action�args�collections�debugger�
ignore_errors�loop�loop_control�	loop_with�name�no_log�register�run_once�tags�timeout�vars�whenNc�l��tt|���|||���d|_dS)N��block�role�task_includeF)�superr�__init__�statically_loaded)�selfr"r#r$�	__class__s    ��B/usr/lib/python3.11/site-packages/ansible/playbook/task_include.pyr&zTaskInclude.__init__0s6���
�k�4� � �)�)��D�|�)�\�\�\�!&�����c��t|||���}|�|�|||���|��}|S)Nr!)�variable_manager�loader)r�
check_options�	load_data)�datar"r#r$r-r.�ti�tasks        r*�loadzTaskInclude.load4sK��
�u�4�l�
K�
K�
K������L�L��0@��L�P�P��
�
��
�r+c
���t|j�����}|�|j��}|rO|jtjvr<td|j�dd�	t|������|����|j�d��sG|j�dd��|jd<|jdstd|jz���|j�d	i��}|r,|jtj
vrtd
|jz|����t|t��s!tdt!|��z|����|S)aV
        Method for options validation to use in 'load_data' for TaskInclude and HandlerTaskInclude
        since they share the same validations. It is not named 'validate_options' on purpose
        to prevent confusion with '_validate_*" methods. Note that the task passed might be changed
        as a side-effect of this method.
        zInvalid options for z: �,��objrr
NzNo file specified for %srzInvalid options for %s: applyz,Expected a dict for apply but got %s instead)�	frozensetr�keys�
difference�
VALID_ARGSr�C�'_ACTION_ALL_PROPER_INCLUDE_IMPORT_TASKSr�join�list�get�pop�_ACTION_INCLUDE_TASKS�
isinstance�dict�type)r(r3r1�my_arg_names�bad_opts�apply_attrss      r*r/zTaskInclude.check_options>sh��!�����!1�!1�2�2�� �*�*�4�?�;�;���	w���q�'P�P�P�$�$�T�[�[�[�RU�RZ�RZ�[_�`h�[i�[i�Rj�Rj�Rj�%k�qu�v�v�v�v��y�}�}�]�+�+�	S�'+�y�}�}�V�T�'B�'B�D�I�m�$��9�]�+�
S�(�)C�d�k�)Q�R�R�R��i�m�m�G�R�0�0���	s�4�;�a�.E�E�E�$�%D�t�{�%R�X\�]�]�]�]��K��.�.�	s�$�%S�VZ�[f�Vg�Vg�%g�mq�r�r�r�r��r+c���tt|���|��}t|������|j��}|D]o}||tur^|dtj	vrJtj
r!td|�d|jj
��|����t�d|z���p|S)Nr�'z!' is not a valid attribute for a r7zIgnoring invalid attribute: %s)r%r�preprocess_data�setr:r;�VALID_INCLUDE_KEYWORDSr
r=�_ACTION_ALL_INCLUDE_ROLE_TASKS�INVALID_TASK_ATTRIBUTE_FAILEDrr)�__name__�display�warning)r(�ds�diff�kr)s    �r*rLzTaskInclude.preprocess_dataYs����
�;��
%�
%�
5�
5�b�
9�
9���2�7�7�9�9�~�~�(�(��)D�E�E���	J�	J�A��!�u�H�$�$��H���9Y�)Y�)Y��2�J�,�,�YZ�YZ�YZ�\`�\j�\s�\s�-t�z|�}�}�}�}��O�O�$D�q�$H�I�I�I���	r+Fc�t��tt|���||���}|j|_|S)N)�exclude_parent�
exclude_tasks)r%r�copyr')r(rXrY�new_mer)s    �r*rZzTaskInclude.copygs6����{�D�)�)�.�.�n�\i�.�j�j��#'�#9�� ��
r+c�$��|jtjvr(tt|�����}nSt
��}|jr||j���z}||jz}||j	z}d|vr|d=d|vr|d=|S)z�
        We override the parent Task() classes get_vars here because
        we need to include the args of the include into the vars as
        they are params to the included tasks. But ONLY for 'include'
        rr)
rr=�_ACTION_INCLUDEr%r�get_varsrE�_parentrr)r(�all_varsr)s  �r*r^zTaskInclude.get_varsls�����;�a�/�/�/��[�$�/�/�8�8�:�:�H�H��v�v�H��|�
4��D�L�1�1�3�3�3����	�!�H���	�!�H���!�!��V�$���!�!��V�$��r+c��|j�di��}|r9g|d<tj||jj||j|j|j���}n|}|S)z{
        This method is used to create the parent block for the included tasks
        when ``apply`` is specified
        rr")�playr$r#r-r.)	rrBrr4r_�_play�_role�_variable_manager�_loader)r(rI�p_blocks   r*�build_parent_blockzTaskInclude.build_parent_block�sm��
�i�m�m�G�R�0�0���	�#%�K�� ��j���\�'�!��Z�!%�!7��|�
���G�G��G��r+)NNN)NNNNN)FF)rQ�
__module__�__qualname__�__doc__r9�BASE�
OTHER_ARGS�unionr<rNr&�staticmethodr4r/rLrZr^rh�
__classcell__)r)s@r*rr"s���������
�9�,�-�-�D���:�&�&�J����J�'�'�J�&�Y�(0�1�1��'�'�'�'�'�'������\�����6�����������
�����.������r+)�
__future__rrrrF�
__metaclass__�ansible.constants�	constantsr=�ansible.errorsr�ansible.playbook.blockr�ansible.playbook.taskr�ansible.utils.displayr	�ansible.utils.sentinelr
�__all__rRr�r+r*�<module>r|s���&C�B�B�B�B�B�B�B�B�B��
�������-�-�-�-�-�-�(�(�(�(�(�(�&�&�&�&�&�&�)�)�)�)�)�)�+�+�+�+�+�+��/��
�'�)�)��t�t�t�t�t�$�t�t�t�t�tr+

Youez - 2016 - github.com/yon3zu
LinuXploit