1. > ansible --help
  2. Usage: ansible <host-pattern> [options]
  3.  
  4. Define and run a single task 'playbook' against a set of hosts
  5.  
  6. Options:
  7. -a MODULE_ARGS, --args=MODULE_ARGS
  8. module arguments
  9. --ask-vault-pass ask for vault password
  10. -B SECONDS, --background=SECONDS
  11. run asynchronously, failing after X seconds
  12. (default=N/A)
  13. -C, --check don't make any changes; instead, try to predict some
  14. of the changes that may occur
  15. -D, --diff when changing (small) files and templates, show the
  16. differences in those files; works great with --check
  17. -e EXTRA_VARS, --extra-vars=EXTRA_VARS
  18. set additional variables as key=value or YAML/JSON, if
  19. filename prepend with @
  20. -f FORKS, --forks=FORKS
  21. specify number of parallel processes to use
  22. (default=5)
  23. -h, --help show this help message and exit
  24. -i INVENTORY, --inventory=INVENTORY, --inventory-file=INVENTORY
  25. specify inventory host path or comma separated host
  26. list. --inventory-file is deprecated
  27. -l SUBSET, --limit=SUBSET
  28. further limit selected hosts to an additional pattern
  29. --list-hosts outputs a list of matching hosts; does not execute
  30. anything else
  31. -m MODULE_NAME, --module-name=MODULE_NAME
  32. module name to execute (default=command)
  33. -M MODULE_PATH, --module-path=MODULE_PATH
  34. prepend colon-separated path(s) to module library
  35. (default=[u'/root/.ansible/plugins/modules',
  36. u'/usr/share/ansible/plugins/modules'])
  37. -o, --one-line condense output
  38. --playbook-dir=BASEDIR
  39. Since this tool does not use playbooks, use this as a
  40. subsitute playbook directory.This sets the relative
  41. path for many features including roles/ group_vars/
  42. etc.
  43. -P POLL_INTERVAL, --poll=POLL_INTERVAL
  44. set the poll interval if using -B (default=15)
  45. --syntax-check perform a syntax check on the playbook, but do not
  46. execute it
  47. -t TREE, --tree=TREE log output to this directory
  48. --vault-id=VAULT_IDS the vault identity to use
  49. --vault-password-file=VAULT_PASSWORD_FILES
  50. vault password file
  51. -v, --verbose verbose mode (-vvv for more, -vvvv to enable
  52. connection debugging)
  53. --version show program's version number and exit
  54.  
  55. Connection Options:
  56. control as whom and how to connect to hosts
  57.  
  58. -k, --ask-pass ask for connection password
  59. --private-key=PRIVATE_KEY_FILE, --key-file=PRIVATE_KEY_FILE
  60. use this file to authenticate the connection
  61. -u REMOTE_USER, --user=REMOTE_USER
  62. connect as this user (default=None)
  63. -c CONNECTION, --connection=CONNECTION
  64. connection type to use (default=smart)
  65. -T TIMEOUT, --timeout=TIMEOUT
  66. override the connection timeout in seconds
  67. (default=10)
  68. --ssh-common-args=SSH_COMMON_ARGS
  69. specify common arguments to pass to sftp/scp/ssh (e.g.
  70. ProxyCommand)
  71. --sftp-extra-args=SFTP_EXTRA_ARGS
  72. specify extra arguments to pass to sftp only (e.g. -f,
  73. -l)
  74. --scp-extra-args=SCP_EXTRA_ARGS
  75. specify extra arguments to pass to scp only (e.g. -l)
  76. --ssh-extra-args=SSH_EXTRA_ARGS
  77. specify extra arguments to pass to ssh only (e.g. -R)
  78.  
  79. Privilege Escalation Options:
  80. control how and which user you become as on target hosts
  81.  
  82. -s, --sudo run operations with sudo (nopasswd) (deprecated, use
  83. become)
  84. -U SUDO_USER, --sudo-user=SUDO_USER
  85. desired sudo user (default=root) (deprecated, use
  86. become)
  87. -S, --su run operations with su (deprecated, use become)
  88. -R SU_USER, --su-user=SU_USER
  89. run operations with su as this user (default=None)
  90. (deprecated, use become)
  91. -b, --become run operations with become (does not imply password
  92. prompting)
  93. --become-method=BECOME_METHOD
  94. privilege escalation method to use (default=sudo),
  95. valid choices: [ sudo | su | pbrun | pfexec | doas |
  96. dzdo | ksu | runas | pmrun | enable | machinectl ]
  97. --become-user=BECOME_USER
  98. run operations as this user (default=root)
  99. --ask-sudo-pass ask for sudo password (deprecated, use become)
  100. --ask-su-pass ask for su password (deprecated, use become)
  101. -K, --ask-become-pass
  102. ask for privilege escalation password
  103.  
  104. Some modules do not make sense in Ad-Hoc (include, meta, etc)
  105.  
  106. [root@ftp:/home/student/dep-install]
  107. >

ansible --help 文档的更多相关文章

  1. ansible安装文档

    一.系统环境 [root@ansible ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@ansible ~]# uname ...

  2. ansible使用文档

    假设A机器上安装ansible yum install ansible vim /etc/ansible/hosts 对每个主机加key认证ssh-copy-id -i ~/.ssh/id_rsa.p ...

  3. 【Ansible 文档】【译文】Playbooks 变量

    Variables 变量 自动化的存在使得重复的做事情变得很容易,但是我们的系统不可能完全一样. 在某些系统中,你可能想要设置一些与其他系统不一样的行为和配置. 同样地,远程系统的行为和状态也可以影响 ...

  4. 【Ansible 文档】【译文】网络支持

    Networking Support 网络支持 Working with Networking Devices 使用网络设备 自从Ansible 2.1开始,你现在可以使用成熟模型 - 编写 play ...

  5. 【Ansible 文档】【译文】Windows 支持

    see also:List of Windows Modules Windows Support Windows 支持 Windows: How Does It Work Windows:如何工作 正 ...

  6. 【Ansible 文档】【译文】配置文件

    这里说明一下配置文件的内容,原文地址:http://docs.ansible.com/ansible/latest/intro_configuration.html 这个与[Ansible 文档]配置 ...

  7. 【Ansible 文档】【译文】Ad-Hoc 命令介绍

    Introduction To Ad-Hoc Commands Ad-Hoc命令介绍 下面的例子展示了如何使用 /usr/bin/ansible 来运行ad hoc任务. 什么是ad hoc命令? 一 ...

  8. 【Ansible 文档】【译文】入门教程

    http://docs.ansible.com/ansible/latest/intro_getting_started.html Foreword 前言 到这里,你应该已经安装了Ansible,是时 ...

  9. 【Ansible 文档】【译文】常见问题

    http://docs.ansible.com/ansible/latest/faq.html 如何为一个task或者整个Playbook设置PATH或者任意其他环境变量? 通过environment ...

随机推荐

  1. POJ 1084

    WA了好久,第一次用重覆盖的模型做题.感觉这题有个陷阱,那就是当去掉某些边后,若因为这个边去掉而被破环的正方形还存在,那么就会造成覆盖不完全,WA. 所以,在去掉边后,必定有些正方形是不存在的,须重新 ...

  2. bootstrap checkbox

    在使用bootstrap库中的checkboxlistrow时,我想要依据checkbox是否至少选中了一个选项来确定页面的跳转,即须要在js中操作checkbox.这样就存在一个问题,一般的chec ...

  3. 支付宝又惹怒Windows Phone用户了

    支付宝,重新.把WP用户惹怒了. 事情是酱紫的,苹果公布Apple Watch之后.支付宝钱包第一时间在微博上表示:"已经完毕适配Apple Watch版本号的开发工作,中国用户在订购App ...

  4. 链接提交-js代码推送进化版

    百度站长平台提供链接索引的自动提交JS脚本已经有一段时日了.用百度自己的话讲:JS链接推送代码以网页为最小对象,服务于全平台多终端,PC站和移动站均可使用.安装代码的页面在任意平台(浏览器.微信.微博 ...

  5. maven 自建库

    maven repository 标签: mavenjarxmlserver工具磁盘 2009-11-26 10:56 42322人阅读 评论(7) 收藏 举报   目录(?)[+]   什么是Mav ...

  6. luogu4011 孤岛营救问题 分层图

    关键词:分层图 状态压缩 最短路径 分层图:现在要求从起点到终点的最优路线,但受到手里拿着哪些钥匙的影响,最优路线不单纯了.因此,决定一个节点.一条边的存在的数中应当增加一个手中拿有钥匙的状态.这样就 ...

  7. androidstudio集成ijkplayer教程

      介绍 ijkplayer是一款非常火的开源视频播放器,android和IOS通用.关于怎么编译怎么导入android Studio中自己的项目,其中坑很多,本篇记录下自己的操作记录.ijkplay ...

  8. 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)表示经过前 ...

  9. 确定比赛名次--hdoj

    确定比赛名次 Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total Submis ...

  10. [NOIP 2007] 树网的核

    [题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1999 [算法] 树的直径 + 单调队列 [代码] #include<bits/ ...