File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ansiblegate.cpython-310.pyc
Back
o ;j^ � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddl m Z e�e�Z dZdd� Ze d�G dd � d ��Zd d� Zdd � Zejjj�d�ddd��ZdS )a� Execution of Ansible modules from within states =============================================== With `ansible.call` these states allow individual Ansible module calls to be made via states. To call an Ansible module function use a :mod:`module.run <salt.states.ansible.call>` state: .. code-block:: yaml some_set_of_tasks: ansible: - system.ping - packaging.os.zypper - name: emacs - state: installed � N)�__file_client__)�dependsZansiblec C s t rt �� S tj�t�S )z� Return a file client If the __file_client__ context is set return it, otherwize create a new file client using __opts__. )r �value�saltZ fileclientZget_file_client�__opts__� r r �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ansiblegate.py�_file_client0 s r c @ s e Zd ZdZdd� Zdd� ZdS )�AnsibleStatez Ansible state caller. c C s>