当前位置:网站首页>Available parameters of ansible Playbook
Available parameters of ansible Playbook
2022-07-24 22:10:00 【Look, the future】
Usage: ansible-playbook playbook.yml
Options:
--ask-vault-pass
#ask for vault password
# encryption playbook The file prompts for a password
-C, --check
#don't make any changes; instead, try to predict some of the changes that may occur
# Simulation execution , It will not really be executed on the machine ( See what changes will be made by execution )
-D, --diff
#when changing (small) files and templates, show the differences in those files; works great with --check
# When the number and content of updated files are less , This option shows the different parts of these files , This option combines -C It will have better effect
-e EXTRA_VARS, --extra-vars=EXTRA_VARS
#set additional variables as key=value or YAML/JSON
# stay Playbook External parameter variables are introduced into
--flush-cache
#clear the fact cache
# take fact Clear the remote host cache to
--force-handlers
#run handlers even if a task fails
# Forced operation handlers The task of , Even in the case of mission failure
-f FORKS, --forks=FORKS
#specify number of parallel processes to use(default=5)
# Number of parallel tasks .FORKS Is specified as an integer , The default is 5
-h, --help
#show this help message and exit
# Open help document API
-i INVENTORY, --inventory-file=INVENTORY
#specify inventory host path (default=/etc/ansible/hosts) or comma separated host list.
# Specifies what to read Inventory file
-l SUBSET, --limit=SUBSET
#further limit selected hosts to an additional pattern
# Limit the host range of execution
--list-hosts
#outputs a list of matching hosts; does not execute anything else
# List the hosts to which the execution matches , But it doesn't carry out
--list-tags
#list all available tags
# List all available tags
--list-tasks
#list all tasks that would be executed
# List all tasks to be performed
-M MODULE_PATH, --module-path=MODULE_PATH
#specify path(s) to module library (default=None)
# The path of the module to execute
--new-vault-password-file=NEW_VAULT_PASSWORD_FILE
#new vault password file for rekey
#
--output=OUTPUT_FILE
#output file name for encrypt or decrypt; use - for stdout
#
--skip-tags=SKIP_TAGS
#only run plays and tasks whose tags do not match these values
# Skip the specified tags Mission
--start-at-task=START_AT_TASK
#start the playbook at the task matching this name
# From which task (START_AT_TASK) Start execution
--step
#one-step-at-a-time: confirm each task before running
# Step by step Playbook Defined tasks , And continue to perform the next task after manual confirmation
--syntax-check
#perform a syntax check on the playbook, but do not execute it
# Check Playbook Grammatical writing in , It's not actually implemented
-t TAGS, --tags=TAGS
#only run plays and tasks tagged with these values
# Specifies the execution of the tags The task of
--vault-password-file=VAULT_PASSWORD_FILE
#vault password file
#
-v, --verbose
#verbose mode (-vvv for more, -vvvv to enable connection debugging)
# Execute detailed output
--version
#show program's version number and exit
# Display version
Connection Options:
control as whom and how to connect to hosts
-k, --ask-pass
#ask for connection password
#
--private-key=PRIVATE_KEY_FILE, --key-file=PRIVATE_KEY_FILE
#use this file to authenticate the connection
#
-u REMOTE_USER, --user=REMOTE_USER
#connect as this user (default=None)
# Specify the remote host to USERNAME Run the command
-c CONNECTION, --connection=CONNECTION
#connection type to use (default=smart)
# Specify connection mode , The available options paramiko (SSH)、ssh、local,local Mode is often used for crontab and kickstarts
-T TIMEOUT, --timeout=TIMEOUT
#override the connection timeout in seconds(default=10)
#SSH Connection timeout setting , Default 10s
--ssh-common-args=SSH_COMMON_ARGS
#specify common arguments to pass to sftp/scp/ssh (e.g.ProxyCommand)
#
--sftp-extra-args=SFTP_EXTRA_ARGS
#specify extra arguments to pass to sftp only (e.g. -f, -l)
#
--scp-extra-args=SCP_EXTRA_ARGS
#specify extra arguments to pass to scp only (e.g. -l)
#
--ssh-extra-args=SSH_EXTRA_ARGS
#specify extra arguments to pass to ssh only (e.g. -R)
#
Privilege Escalation Options:
control how and which user you become as on target hosts
-s, --sudo
#run operations with sudo (nopasswd) (deprecated, use become)
# amount to Linux Under the system sudo command
-U SUDO_USER, --sudo-user=SUDO_USER
#desired sudo user (default=root) (deprecated, use become)
# Use sudo, amount to Linux Under the sudo command
-S, --su
#run operations with su (deprecated, use become)
#
-R SU_USER, --su-user=SU_USER
#run operations with su as this user (default=root)(deprecated, use become)
-b, --become
#run operations with become (does not imply password prompting)
#
--become-method=BECOME_METHOD
#privilege escalation method to use (default=sudo),valid choices: [ sudo | su | pbrun | pfexec | doas |dzdo | ksu | runas ]
#
--become-user=BECOME_USER
#run operations as this user (default=root)
#
--ask-sudo-pass
#ask for sudo password (deprecated, use become)
# Pass on sudo Password to remote host , To guarantee sudo The normal operation of the command
--ask-su-pass
#ask for su password (deprecated, use become)
#
-K, --ask-become-pass
#ask for privilege escalation password
#
边栏推荐
- Redefine analysis - release of eventbridge real-time event analysis platform
- Go+语言
- Deep understanding of affairs
- Web3 security go + security
- SVM——针对线性可分(下)
- Gradle learning - gradle advanced instructions
- Using FRP to achieve intranet penetration
- 对萌新小白电脑运行速度变慢解决的方法get!٩( ‘ω‘ )و get!٩( ‘ω‘ )و
- 【ICML2022】气候变化与机器学习:机遇、挑战与考虑,121页ppt
- Pyqt5 uses qfile and qdatastream to read and write binary files
猜你喜欢

第二十周作业

Description of differences between esp32c3 led PWM use and esp32

基于深度学习的多任务人脸属性分析(基于飞桨PaddlePaddle)

Machine learning kmeans

SVM - for linear separability (Part 2)

Dialogue with celebrities: where are the opportunities and challenges in the second half when brands gather at the shuzang track?

工程项目管理软件排名

ACL 2022 | comparative learning based on optimal transmission to achieve interpretable semantic text similarity

C # use SQLite

对萌新小白电脑运行速度变慢解决的方法get!٩( ‘ω‘ )و get!٩( ‘ω‘ )و
随机推荐
Using FRP to achieve intranet penetration
Applet location interface application
Everything about database, database and table is here
Gradle learning - gradle advanced instructions
深入理解事务
集成Swagger 学习
工程项目管理软件排名
One click compilation and installation of redis6.2.4
Go+语言
《论文复现》BiDAF代码实现过程(4)模型训练+验证
SVM - for linear separability (Part 2)
Local data enhancement method of icml2022 | graph neural network
Diou and ciou loss of loss function
Dialogue with celebrities: where are the opportunities and challenges in the second half when brands gather at the shuzang track?
[postgraduate entrance examination English vocabulary training camp] day 11 - offer, form, maintain, critical
ICML2022 | 图神经网络的局域数据增强方法
[combination of classes (define a class in a class)]
2018mysql technology Q & a collection, hoping to give some help to students who like MySQL
Metauniverse: technological evolution, industrial ecology and big country game
RISC0:Towards a Unified Compilation Framework for Zero Knowledge