Ansible有很长的配置参数列表,包括ssh的不同设置.假设我在当前文件夹中有一些/etc/ansible/ansible.cfg和其他ansible.cfg文件,如何查看生成的配置?
我说的是:
ansible show-config
ansible-playbook show config
Run Code Online (Sandbox Code Playgroud)
小智 5
运行'ansible --version'.
$ ansible --version
ansible 2.0.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
$ touch ~/.ansible.cfg
ansible 2.0.1.0
config file = /home/jdoe/.ansible.cfg
configured module search path = Default w/o overrides
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5783 次 |
| 最近记录: |