The ansible.cfg file is the main configuration file that controls how Ansible behaves globally or per project.
Where Ansible Looks for ansible.cfg (VERY IMPORTANT)
Order of precedence:
ANSIBLE_CONFIG (environment variable)
./ansible.cfg (current project directory) ✅
~/.ansible.cfg (user home)
/etc/ansible/ansible.cfg (system-wide)
💡 First one found → used
No comments:
Post a Comment