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/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