관리-도구
편집 파일: playbook.cpython-39.pyc
a �)g�( � @ s� 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 dd� de�Z#ddd�Z$e%dkr�e$� 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 sH e Zd ZdZdZ� fdd�Z� fdd�Z� fdd�Zed d � �Z � Z 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 s t t| �jddd� t�| j� t�| j� t�| j� t�| j� t� | j� t� | j� t�| j� t�| j� t� | j� t�| j� | jjddddd� | jjd d ddd� | jjdd ddd� | jjddddd� | jjdddd� | jjddddd� d S )Nz,%prog [options] playbook.yml [playbook2 ...]zJRuns Ansible playbooks, executing the defined tasks on the targeted hosts.)�usageZdescz--syntax-check�syntax� store_truez=perform a syntax check on the playbook, but do not execute it)�dest�action�helpz--list-tasks� listtasksz%list all tasks that would be executedz--list-tags�listtagszlist all available tagsz--step�stepz4one-step-at-a-time: confirm each task before runningz--start-at-taskZ start_at_taskz1start the playbook at the task matching this name)r r �argszPlaybook(s)�playbook�+)r �metavar�nargs)�superr �init_parser�opt_helpZadd_connect_options�parserZadd_meta_optionsZadd_runas_optionsZadd_subset_optionsZadd_check_optionsZadd_inventory_optionsZadd_runtask_optionsZadd_vault_optionsZadd_fork_optionsZadd_module_options�add_argument)�self�� __class__� �8/usr/lib/python3.9/site-packages/ansible/cli/playbook.pyr"