Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/plugins/vars/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/plugins/vars/host_group_vars.pyo

�
�Udac@`s�ddlmZmZmZeZdZddlZddlm	Z
ddlmZddl
mZmZmZddlmZddlmZdd	lmZdd
lmZiZdefd��YZdS(
i(tabsolute_importtdivisiontprint_functions�
    vars: host_group_vars
    version_added: "2.4"
    short_description: In charge of loading group_vars and host_vars
    description:
        - Loads YAML vars into corresponding groups/hosts in group_vars/ and host_vars/ directories.
        - Files are restricted by extension to one of .yaml, .json, .yml or no extension.
        - Hidden (starting with '.') and backup (ending with '~') files and directories are ignored.
        - Only applies to inventory sources that are existing paths.
    options:
      _valid_extensions:
        default: [".yml", ".yaml", ".json"]
        description:
          - "Check all of these extensions when looking for 'variable' files which should be YAML or JSON or vaulted versions of these."
          - 'This affects vars_files, include_vars, inventory and vars plugins among others.'
        env:
          - name: ANSIBLE_YAML_FILENAME_EXT
        ini:
          - section: yaml_valid_extensions
            key: defaults
        type: list
N(t	constants(tAnsibleParserError(tto_bytest	to_nativetto_text(tBaseVarsPlugin(tHost(tGroup(tcombine_varst
VarsModulecB`seZed�ZRS(c	C`st|t�s|g}ntt|�j|||�i}x�|D]�}t|t�rbd}n.t|t�rzd}ntdt|���|j	j
tjj
�sDy-g}tjjttjj|j|���}	t|	�}
d|j	|
f}|r|tkrt|}nwtjj|	�r�tjj|	�rs|jjd|
�|j|
|j	�}|t|<q�|jjd||
f�nxA|D]9}|j|dtdt�}
|
r�t||
�}q�q�WWqtk
r�}tt|���qXqDqDW|S(	s parses the inventory file t	host_varst
group_varss5Supplied entity must be Host or Group, got %s insteads%s.%ss	processing dir %ss.Found %s that is not a directory, skipping: %stcachetunsafe(t
isinstancetlisttsuperRtget_varsR	R
Rttypetnamet
startswithtostpathtseptrealpathRtjoint_basedirRtFOUNDtexiststisdirt_displaytdebugtfind_vars_filestwarningtload_from_filetTrueRt	ExceptionR(tselftloaderRtentitiesRtdatatentitytsubdirtfound_filestb_opathtopathtkeytfoundtnew_datate((sH/usr/lib/python2.7/site-packages/ansible/plugins/vars/host_group_vars.pyR:s>
		*


(t__name__t
__module__R&R(((sH/usr/lib/python2.7/site-packages/ansible/plugins/vars/host_group_vars.pyR8s(t
__future__RRRRt
__metaclass__t
DOCUMENTATIONRtansibleRtCtansible.errorsRtansible.module_utils._textRRRtansible.plugins.varsRtansible.inventory.hostR	tansible.inventory.groupR
tansible.utils.varsRRR(((sH/usr/lib/python2.7/site-packages/ansible/plugins/vars/host_group_vars.pyt<module>s

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]