86.第十八章 运维自运化之ANSIBLE -- Ansible入门(二)

3.3.1 ansible-doc

此工具用来显示模块帮助,相当于man

格式

ansible-doc [options] [module...]
-l, --list #列出可用模块
-s, --snippet #显示指定模块的playbook片段

范例:

#列出所有模块
ansible-doc -l
#查看指定模块帮助用法
ansible-doc ping
#查看指定模块简要的帮助用法
ansible-doc -s ping

范例: 查看模块数量

[root@ansible ~]

猜你喜欢

转载自blog.csdn.net/qq_25599925/article/details/122048807
今日推荐