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__/service.cpython-39.pyc
a

�)g�@sTddlmZmZmZeZddlmZmZddl	m
Z
ddlmZGdd�de�Z
dS)�)�absolute_import�division�print_function)�
AnsibleAction�AnsibleActionFail)�get_action_args_with_defaults)�
ActionBasecs:eZdZdZdgd�iZegd��Zd�fdd�	Z�ZS)	�ActionModuleF�systemd)�patternZrunlevel�sleepZ	arguments�args)Zopenwrt_initZservicer
ZsysvinitNc

sFd|_d|_tt|��||�}~|jj�dd���}|dkr~z.|jj	r\|j
�d|jj	�}n|j
�d�}Wnty|Yn0�z��zP|dkr�|j
dtddd	�|d
�}|j�d|�|�di��dd�}|r�|dks�|jj�|�s�d
}|dk�r�|jj��}d|v�r|d=||jv�rP|j|D]*}||v�r$||=|j�d||f��q$|jjj||jjd�}t|j||jj|j
|jjjjd�}||jv�r�d|}|j� d|�|�!|j
||||jj"d��nt#d��Wn2t$�y}	z|�!|	j%�WYd}	~	n
d}	~	00W|jj"�sB|�&|j'j(j)�n|jj"�s@|�&|j'j(j)�0|S)z  handler for package operations TZuse�autoz2{{hostvars['%s']['ansible_facts']['service_mgr']}}z{{ansible_facts.service_mgr}}zansible.legacy.setupz!allZansible_service_mgr)Z
gather_subset�filter)�module_name�module_args�	task_varszFacts %sZ
ansible_factszansible.legacy.servicez'Ignoring "%s" as it is not used in "%s")Zcollection_list)Z
action_groupszansible.legacy.z
Running %s)rrrZ
wrap_asyncz_Could not detect which service manager to use. Try gathering facts or setting the "use" option.N)*Z_supports_check_modeZ_supports_async�superr	�runZ_taskr
�get�lowerZdelegate_toZ_templar�template�	ExceptionZ_execute_module�dictZ_display�debugZ_shared_loader_objZ
module_loaderZ
has_plugin�copy�
UNUSED_PARAMSZwarningZfind_plugin_with_context�collectionsrZ
resolved_fqcnZmodule_defaultsZ_parentZ_play�_action_groups�BUILTIN_SVC_MGR_MODULESZvvvv�updateZ	async_valrr�resultZ_remove_tmp_pathZ_connectionZ_shellZtmpdir)
�self�tmprr!�moduleZfactsZnew_module_argsZunused�context�e��	__class__��B/usr/lib/python3.9/site-packages/ansible/plugins/action/service.pyr&s`�



�$
�
zActionModule.run)NN)	�__name__�
__module__�__qualname__ZTRANSFERS_FILESr�setrr�
__classcell__r)r)r'r*r	s
�r	N)Z
__future__rrr�typeZ
__metaclass__Zansible.errorsrrZansible.executor.module_commonrZansible.plugins.actionrr	r)r)r)r*�<module>s