HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible/vars/__pycache__/hostvars.cpython-39.pyc
a

�)g �@shddlmZmZmZeZddlmZddlm	Z	m
Z
gd�ZddgZGdd�de�Z
Gdd�de�Zd	S)
�)�absolute_import�division�print_function)�Mapping)�Templar�AnsibleUndefined)Zansible_versionZansible_play_hostsZansible_dependent_role_namesZansible_play_role_namesZansible_role_namesZinventory_hostnameZinventory_hostname_shortZinventory_fileZ
inventory_dir�groupsZgroup_namesZomitZplaybook_dirZ
play_hostsZ
role_namesZ	ungrouped�HostVars�HostVarsVarsc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd S)!r	zO A special view of vars_cache that adds values from the inventory when needed. cCs||_||_||_||_dS�N)�
_inventory�_loader�_variable_manager�	_hostvars)�self�	inventory�variable_manager�loader�r�9/usr/lib/python3.9/site-packages/ansible/vars/hostvars.py�__init__4szHostVars.__init__cCs||_||_dSr)rr)rrrrr�set_variable_manager:szHostVars.set_variable_managercCs
||_dSr)r)rrrrr�
set_inventory>szHostVars.set_inventorycCs|j�|�Sr)rZget_host�r�	host_namerrr�
_find_hostAszHostVars._find_hostcCs0|�|�}|dur td|d�S|jj|dd�S)z�
        Similar to __getitem__, however the returned data is not run through
        the templating engine to expand variables in the hostvars.
        Nzhostvars['%s'])�nameF)�hostZinclude_hostvars)rrrZget_vars)rrrrrr�raw_getEs
zHostVars.raw_getcCs:|j�|�|jjdur"|j|j_|jjdur6||j_dSr)�__dict__�updaterr
r)r�staterrr�__setstate__Ps

zHostVars.__setstate__cCs&|�|�}t|t�r|St||jd�S)N)r)r�
isinstancerr
r
)rr�datarrr�__getitem__]s

zHostVars.__getitem__cCs|j�|||�dSr)r�set_host_variable)rrZvarname�valuerrrr&cszHostVars.set_host_variablecCs|j�||�dSr)r�set_nonpersistent_facts�rrZfactsrrrr(fsz HostVars.set_nonpersistent_factscCs|j�||�dSr)r�set_host_factsr)rrrr*iszHostVars.set_host_factscCs|�|�duSr)rrrrr�__contains__lszHostVars.__contains__ccs|jjD]
}|VqdSr)r�hosts)rrrrr�__iter__pszHostVars.__iter__cCst|jj�Sr)�lenrr,�rrrr�__len__tszHostVars.__len__cCs(i}|jjD]}|�|�||<qt|�Sr)rr,�get�repr)r�outrrrr�__repr__wszHostVars.__repr__cCs|Srr)r�memorrr�__deepcopy__}szHostVars.__deepcopy__N)�__name__�
__module__�__qualname__�__doc__rrrrrr"r%r&r(r*r+r-r0r4r6rrrrr	1s 
c@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)r
cCs||_||_dSr)�_varsr
)r�	variablesrrrrr�szHostVarsVars.__init__cCs*t|j|jd�}|j|j|dtd�}|S�N)r<rF)Zfail_on_undefinedZstatic_vars)rr;r
�template�STATIC_VARS)r�var�templarZfoorrrr%�szHostVarsVars.__getitem__cCs
||jvSr)r;�rr@rrrr+�szHostVarsVars.__contains__ccs|j��D]
}|Vq
dSr)r;�keysrBrrrr-�szHostVarsVars.__iter__cCst|j���Sr)r.r;rCr/rrrr0�szHostVarsVars.__len__cCs&t|j|jd�}t|j|jdtd��Sr=)rr;r
r2r>r?)rrArrrr4�szHostVarsVars.__repr__N)	r7r8r9rr%r+r-r0r4rrrrr
�sN)Z
__future__rrr�typeZ
__metaclass__�collections.abcrZansible.templaterrr?�__all__r	r
rrrr�<module>sS