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: //usr/lib/python3.9/site-packages/ansible/plugins/action/__pycache__/script.cpython-39.pyc
a

�)g6�@s�ddlmZmZmZeZddlZddlZddlZddl	m
Z
mZmZm
Z
mZddlmZddlmZmZmZddlmZGdd�de�ZdS)	�)�absolute_import�division�print_functionN)�AnsibleError�
AnsibleAction�_AnsibleActionDone�AnsibleActionFail�AnsibleActionSkip)�module_manifest)�to_bytes�	to_native�to_text)�
ActionBasecs,eZdZdZe�d�Zd�fdd�	Z�ZS)�ActionModuleTz^(?:[a-zA-Z]\:)?(\\|\/)Ncsz|durt�}tt|��||�}~�z>�z�|jj�d�}|rR|�|�rRtd|��|jj�d�}|rz|�|�sztd|��|jj�d�}|r�t	|j
jdd�r�|j�
|�s�td	|��t	|j
jdd�s�|�d
�s�td|��t|jj�dd
�dd�}dd�t�|���D�}|d}	t|jj�dd
�dd�}
z(|jj|�d|	�|jj�dd�d�}	Wn2t�y�}ztt|���WYd}~n
d}~00|jj�r�|jj�d��s�|jj�d��r�d|d<t|d��nd|d<td|d��d|d<|j
j�|j
jjtj�|	��}t|���� |d|�}
|�!|	|�|j"|j
jj|fdd�t�}|�#|�}|
�rbd�$||
|
g�}nd�$||
g�}|j
j�%|�}d}t	|j
jdd��r�|j&}t'�(t)|�|	i||jj*|j+|j,|j-|j.|j/d|d�
}|j
jj0d
dd
d�}|�1|j2||d|d ��d!|v�r|d!dk�rtd"��Wn2t3�yN}z|�1|j4�WYd}~n
d}~00W|�5|j
jj�n|�5|j
jj�0|S)#z& handler for file transfer operations N�createsz"%s exists, matching creates option�removesz*%s does not exist, matching removes option�chdirZ_IS_WINDOWSFz;chdir %s must be an absolute path for a Windows remote node�/z>chdir %s must be an absolute path for a Unix-aware remote nodeZ_raw_params��surrogate_or_strict��errorscSsg|]}t|dd��qS)rr)r
)�.0�s�r�A/usr/lib/python3.9/site-packages/ansible/plugins/action/script.py�
<listcomp>O�z$ActionModule.run.<locals>.<listcomp>r�
executable�files�decryptT)r Zchanged)�resultz*Check mode is not supported for this task.)Zexecute� Zscriptz#!powershell)�
env_stringZshebang�cmd)r$Zin_dataZsudoabler�rcznon-zero return code)6�dict�superr�runZ_task�args�getZ_remote_file_existsr	�getattrZ_connectionZ_shell�windows_absolute_path_detection�matchr�
startswithr�shlex�split�stripZ_loaderZ
get_real_fileZ_find_needlerZ
check_moderZ	join_pathZtmpdir�os�path�basenamer
�replaceZ_transfer_fileZ
_fixup_perms2Z_compute_environment_string�joinZ
wrap_for_execZ
_play_context�ps_manifestZ_create_powershell_wrapperrZ	async_valZbecomeZ
become_methodZbecome_userZbecome_passZbecome_flagsZbuild_module_command�updateZ_low_level_execute_commandrr!Z_remove_tmp_path)�self�tmpZ	task_varsr!rrrZ
raw_params�parts�sourcer�eZtmp_srcZtarget_commandZenv_dictr#Z
script_cmdZ	exec_dataZpc��	__class__rrr(&s�


�("
 
�

�$$zActionModule.run)NN)	�__name__�
__module__�__qualname__ZTRANSFERS_FILES�re�compiler,r(�
__classcell__rrr>rrs
r)Z
__future__rrr�typeZ
__metaclass__r2rCr/Zansible.errorsrrrrr	Zansible.executor.powershellr
r7Zansible.module_utils._textrrr
Zansible.plugins.actionrrrrrr�<module>s