Ansible configuration file
Ansible configuration file
Ansible 按照如下位置和顺序来查找 ansible.cfg 文件:
- ANSIBLE_CONFIG 环境变量所指定的文件
- 当前目录下的 ansible.cfg 文件
- Home 目录下的的.ansible.cfg 文件
- /etc/ansible/ansible.cfg 文件
[defaults] |
ask_pass = false 需要配置 ssh 免密登录;
become_ask_pass = false 需要在 sudoers 配置免密提权。
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.