ansible --help 文档
- > ansible --help
- Usage: ansible <host-pattern> [options]
- Define and run a single task 'playbook' against a set of hosts
- Options:
- -a MODULE_ARGS, --args=MODULE_ARGS
- module arguments
- --ask-vault-pass ask for vault password
- -B SECONDS, --background=SECONDS
- run asynchronously, failing after X seconds
- (default=N/A)
- -C, --check don't make any changes; instead, try to predict some
- of the changes that may occur
- -D, --diff when changing (small) files and templates, show the
- differences in those files; works great with --check
- -e EXTRA_VARS, --extra-vars=EXTRA_VARS
- set additional variables as key=value or YAML/JSON, if
- filename prepend with @
- -f FORKS, --forks=FORKS
- specify number of parallel processes to use
- (default=5)
- -h, --help show this help message and exit
- -i INVENTORY, --inventory=INVENTORY, --inventory-file=INVENTORY
- specify inventory host path or comma separated host
- list. --inventory-file is deprecated
- -l SUBSET, --limit=SUBSET
- further limit selected hosts to an additional pattern
- --list-hosts outputs a list of matching hosts; does not execute
- anything else
- -m MODULE_NAME, --module-name=MODULE_NAME
- module name to execute (default=command)
- -M MODULE_PATH, --module-path=MODULE_PATH
- prepend colon-separated path(s) to module library
- (default=[u'/root/.ansible/plugins/modules',
- u'/usr/share/ansible/plugins/modules'])
- -o, --one-line condense output
- --playbook-dir=BASEDIR
- Since this tool does not use playbooks, use this as a
- subsitute playbook directory.This sets the relative
- path for many features including roles/ group_vars/
- etc.
- -P POLL_INTERVAL, --poll=POLL_INTERVAL
- set the poll interval if using -B (default=15)
- --syntax-check perform a syntax check on the playbook, but do not
- execute it
- -t TREE, --tree=TREE log output to this directory
- --vault-id=VAULT_IDS the vault identity to use
- --vault-password-file=VAULT_PASSWORD_FILES
- vault password file
- -v, --verbose verbose mode (-vvv for more, -vvvv to enable
- connection debugging)
- --version show program's version number and exit
- 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)
- -c CONNECTION, --connection=CONNECTION
- connection type to use (default=smart)
- -T TIMEOUT, --timeout=TIMEOUT
- override the connection timeout in seconds
- (default=10)
- --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)
- -U SUDO_USER, --sudo-user=SUDO_USER
- desired sudo user (default=root) (deprecated, use
- become)
- -S, --su run operations with su (deprecated, use become)
- -R SU_USER, --su-user=SU_USER
- run operations with su as this user (default=None)
- (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 | pmrun | enable | machinectl ]
- --become-user=BECOME_USER
- run operations as this user (default=root)
- --ask-sudo-pass ask for sudo password (deprecated, use become)
- --ask-su-pass ask for su password (deprecated, use become)
- -K, --ask-become-pass
- ask for privilege escalation password
- Some modules do not make sense in Ad-Hoc (include, meta, etc)
- [root@ftp:/home/student/dep-install]
- >
ansible --help 文档的更多相关文章
- ansible安装文档
一.系统环境 [root@ansible ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@ansible ~]# uname ...
- ansible使用文档
假设A机器上安装ansible yum install ansible vim /etc/ansible/hosts 对每个主机加key认证ssh-copy-id -i ~/.ssh/id_rsa.p ...
- 【Ansible 文档】【译文】Playbooks 变量
Variables 变量 自动化的存在使得重复的做事情变得很容易,但是我们的系统不可能完全一样. 在某些系统中,你可能想要设置一些与其他系统不一样的行为和配置. 同样地,远程系统的行为和状态也可以影响 ...
- 【Ansible 文档】【译文】网络支持
Networking Support 网络支持 Working with Networking Devices 使用网络设备 自从Ansible 2.1开始,你现在可以使用成熟模型 - 编写 play ...
- 【Ansible 文档】【译文】Windows 支持
see also:List of Windows Modules Windows Support Windows 支持 Windows: How Does It Work Windows:如何工作 正 ...
- 【Ansible 文档】【译文】配置文件
这里说明一下配置文件的内容,原文地址:http://docs.ansible.com/ansible/latest/intro_configuration.html 这个与[Ansible 文档]配置 ...
- 【Ansible 文档】【译文】Ad-Hoc 命令介绍
Introduction To Ad-Hoc Commands Ad-Hoc命令介绍 下面的例子展示了如何使用 /usr/bin/ansible 来运行ad hoc任务. 什么是ad hoc命令? 一 ...
- 【Ansible 文档】【译文】入门教程
http://docs.ansible.com/ansible/latest/intro_getting_started.html Foreword 前言 到这里,你应该已经安装了Ansible,是时 ...
- 【Ansible 文档】【译文】常见问题
http://docs.ansible.com/ansible/latest/faq.html 如何为一个task或者整个Playbook设置PATH或者任意其他环境变量? 通过environment ...
随机推荐
- POJ 1084
WA了好久,第一次用重覆盖的模型做题.感觉这题有个陷阱,那就是当去掉某些边后,若因为这个边去掉而被破环的正方形还存在,那么就会造成覆盖不完全,WA. 所以,在去掉边后,必定有些正方形是不存在的,须重新 ...
- bootstrap checkbox
在使用bootstrap库中的checkboxlistrow时,我想要依据checkbox是否至少选中了一个选项来确定页面的跳转,即须要在js中操作checkbox.这样就存在一个问题,一般的chec ...
- 支付宝又惹怒Windows Phone用户了
支付宝,重新.把WP用户惹怒了. 事情是酱紫的,苹果公布Apple Watch之后.支付宝钱包第一时间在微博上表示:"已经完毕适配Apple Watch版本号的开发工作,中国用户在订购App ...
- 链接提交-js代码推送进化版
百度站长平台提供链接索引的自动提交JS脚本已经有一段时日了.用百度自己的话讲:JS链接推送代码以网页为最小对象,服务于全平台多终端,PC站和移动站均可使用.安装代码的页面在任意平台(浏览器.微信.微博 ...
- maven 自建库
maven repository 标签: mavenjarxmlserver工具磁盘 2009-11-26 10:56 42322人阅读 评论(7) 收藏 举报 目录(?)[+] 什么是Mav ...
- luogu4011 孤岛营救问题 分层图
关键词:分层图 状态压缩 最短路径 分层图:现在要求从起点到终点的最优路线,但受到手里拿着哪些钥匙的影响,最优路线不单纯了.因此,决定一个节点.一条边的存在的数中应当增加一个手中拿有钥匙的状态.这样就 ...
- androidstudio集成ijkplayer教程
介绍 ijkplayer是一款非常火的开源视频播放器,android和IOS通用.关于怎么编译怎么导入android Studio中自己的项目,其中坑很多,本篇记录下自己的操作记录.ijkplay ...
- Floyed理解
Floyed理解 Floyd算法的本质是动态规划,其转移方程为:f(k,i,j) = min( f(k-1,i,j), f(k-1,i,k)+f(k-1,k,j) ). f(k-1,i,j)表示经过前 ...
- 确定比赛名次--hdoj
确定比赛名次 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submis ...
- [NOIP 2007] 树网的核
[题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1999 [算法] 树的直径 + 单调队列 [代码] #include<bits/ ...