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/config/__pycache__/ |
Upload File : |
� ���c�b � � � d dl mZmZmZ eZd dlZd dlZd dlZd dl Zd dl Z d dlZd dlZd dl Z d dlmZ d dlmZmZ d dlmZ d dlmZmZ d dlmZmZmZ d dlmZ d d lmZ d d l m!Z! d dl"m#Z# d dl$m%Z% d d l&m'Z' d dl(m)Z)m*Z*m+Z+ edd� � Z, edd� � Z-ddiZ.d� Z/dd�Z0dd�Z1d� Z2d� Z3dd�Z4d� Z5 G d� de6� � Z7dS )� )�absolute_import�division�print_functionN)� namedtuple)�Mapping�Sequence)�NativeEnvironment)�AnsibleOptionsError�AnsibleError)�to_text�to_bytes� to_native)� yaml_load)�string_types)�boolean)�unquote)�AnsibleVaultEncryptedUnicode)� py3compat)�cleanup_tmp_file� makedirs_safe�unfrackpath�Pluginz name type�Settingzname value origin type�lookup)�_termsc �B � d}| r|d| z z }|r|d|z z }|d|z z }|S )z& construct entry for requested config � zplugin_type: %s zplugin: %s zsetting: %s � )�plugin_type�plugin_name�config�entrys �;/usr/lib/python3.11/site-packages/ansible/config/manager.py� _get_entryr$ % sJ � ��E�� 1� �#�k�1�1��� 1��]�[�0�0�E� �^�f� $�$�E��L� c �: �� d}d�|rMt j � |� � r.t j � t |� � � � r|�|r|� � � }| ��|dv rt | d�� � } �n�|dv rt | � � } �n�|dk rt | � � } �n�|dk rOt | t � � r!d � | � d � � D � � } �nzt | t � � sd}�na|dk r| dk rd} | �d}�nM|d k r,t | t � � rt | ��� � } �nd }�n|dv r�t | t � � r�t | ��� � } t j � | � � st | d� � dt j � � z }t! j || �� � } t% j t( | d�� � �nxd}�nt|dk r]t | t � � r| � t j � � } t | t � � r�fd�| D � � } �nd}�n|dk r[t | t � � rd� | � d � � D � � } t | t � � r�fd�| D � � } n�d}n�|dv rt | t, � � sd}n�|dv rVt | t t. t0 t t t2 f� � rt5 t7 | d�� � � � } n=d }n:t | t t. f� � rt5 t7 | d�� � � � } |r"t9 d!|�d"t; | � � ��� � �t7 | dd#�$� � S )%a return a configuration variable with casting :arg value: The value to ensure correct typing of :kwarg value_type: The type of the value. This can be any of the following strings: :boolean: sets the value to a True or False value :bool: Same as 'boolean' :integer: Sets the value to an integer or raises a ValueType error :int: Same as 'integer' :float: Sets the value to a float or raises a ValueType error :list: Treats the value as a comma separated list. Split the value and return it as a python list. :none: Sets the value to None :path: Expands any environment variables and tilde's in the value. :tmppath: Create a unique temporary directory inside of the directory specified by value and return its path. :temppath: Same as 'tmppath' :tmp: Same as 'tmppath' :pathlist: Treat the value as a typical PATH string. (On POSIX, this means colon separated strings.) Split the value and then expand each part for environment variables and tildes. :pathspec: Treat the value as a PATH string. Expands any environment variables tildes's in the value. :str: Sets the value to string types. :string: Same as 'str' r N)r �boolF)�strict)�integer�int�float�listc �P � g | ]#}t |� � � � � ��$S r )r �strip��.0�xs r# � <listcomp>zensure_type.<locals>.<listcomp>_ s( � �F�F�F��������+�+�F�F�Fr% �,�none�None�path��basedir)�tmp�temppath�tmppathi� zansible-local-%s)�prefix�dirT)�warnr: �pathspecc �2 �� g | ]}t |�� � � ��S �r7 ��resolve_path�r0 r1 r8 s �r# r2 zensure_type.<locals>.<listcomp>� �&