%PDF- %PDF-
Mini Shell

Mini Shell

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

a

�)g�@spddlmZmZmZeZddlZddlmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZGdd�de�ZdS)	�)�absolute_import�division�print_functionN)�AnsibleError�
AnsibleAction�AnsibleActionFail�AnsibleActionSkip)�to_text)�boolean)�
ActionBasecs"eZdZdZd�fdd�	Z�ZS)�ActionModuleTNc
s�|durt�}tt|��||�}~|jj�dd�}|jj�dd�}t|jj�dd�dd�}|jj�dd�}|jj�dd	�}�z.�z�d
|jjvr�d|jjvr�td��t|jj�	d
�dd�|jjd<}|dus�|dur�td��|�r|�
|�}|�|��rtd
|��|�
|�}t
j�|�}|�srz|jj|�d|�|d�}Wn2t�yp}	ztt|	���WYd}	~	n
d}	~	00z|j||d	d�}
Wn2t�y�}	ztt|	���WYd}	~	n
d}	~	00|
d�r�|
d�s�td|��|�s|jj�|jjjd�}|�||�|jj��}dD]}
|
|v�r||
=�q|�sL|�|jjj|f�||d<|�|jd||d��Wn2t�y�}	z|�|	j �WYd}	~	n
d}	~	00W|�!|jjj�n|�!|jjj�0|S)z" handler for unarchive operations N�src�dest�
remote_srcF)�strict�creates�decryptT�copyz9parameters are mutually exclusive: ('copy', 'remote_src')z&src (or content) and dest are requiredzskipped, since %s exists�files)r)Zall_vars�follow�exists�isdirz!dest '%s' must be an existing dir�sourcezansible.legacy.unarchive)Zmodule_nameZmodule_args�	task_vars)"�dict�superr�runZ_task�args�getr
r�popZ_remote_expand_userZ_remote_file_existsr�os�path�
expanduserZ_loaderZ
get_real_fileZ_find_needlerr	Z_execute_remote_statZ_connectionZ_shellZ	join_pathZtmpdirZ_transfer_filerZ
_fixup_perms2�updateZ_execute_moduler�resultZ_remove_tmp_path)�self�tmprr$rrrrr�eZremote_statZtmp_srcZnew_module_args�key��	__class__��D/usr/lib/python3.9/site-packages/ansible/plugins/action/unarchive.pyr!s`$

""

$$zActionModule.run)NN)�__name__�
__module__�__qualname__ZTRANSFERS_FILESr�
__classcell__r+r+r)r,rsr)Z
__future__rrr�typeZ
__metaclass__r Zansible.errorsrrrrZansible.module_utils._textr	Z)ansible.module_utils.parsing.convert_boolr
Zansible.plugins.actionrrr+r+r+r,�<module>s

Zerion Mini Shell 1.0