Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.11/site-packages/ansible/cli/__pycache__/ |
Upload File : |
� ���cA( � � � d dl mZmZmZ eZd dlmZ d dlZd dl Z d dl mZ d dl m Z d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZmZ d dl m!Z! e!� � Z" G d� de� � Z#dd�Z$e%dk r e$� � dS dS )� )�absolute_import�division�print_function)�CLIN)� constants)�context)�option_helpers)�AnsibleError)�PlaybookExecutor)�to_bytes)�Block)�add_all_plugin_dirs)�AnsibleCollectionConfig)�_get_collection_name_from_path�_get_collection_playbook_path)�Displayc �P � � e Zd ZdZdZ� fd�Z� fd�Z� fd�Zed� � � Z � xZ S )�PlaybookCLIz� the tool to run *Ansible playbooks*, which are a configuration and multinode deployment system. See the project home page (https://docs.ansible.com) for more information. zansible-playbookc �z �� t t | � � � dd�� � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � t j | j � � | j � dddd�� � | j � d d dd�� � | j � dd dd�� � | j � ddd�� � | j � dddd�� � d S )Nz,%prog [options] playbook.yml [playbook2 ...]zJRuns Ansible playbooks, executing the defined tasks on the targeted hosts.)�usage�descz--list-tasks� listtasks� store_truez%list all tasks that would be executed)�dest�action�helpz--list-tags�listtagszlist all available tagsz--step�stepz4one-step-at-a-time: confirm each task before runningz--start-at-task� start_at_taskz1start the playbook at the task matching this name)r r �argszPlaybook(s)�playbook�+)r �metavar�nargs)�superr �init_parser�opt_help�add_connect_options�parser�add_meta_options�add_runas_options�add_subset_options�add_check_options�add_inventory_options�add_runtask_options�add_vault_options�add_fork_options�add_module_options�add_argument)�self� __class__s ��9/usr/lib/python3.11/site-packages/ansible/cli/playbook.pyr&