Aug 24, 2019 in Ansible
Q: In which order Ansible check for ansible.cfg file?

1 Answer

0 votes
Aug 24, 2019

Ansible will read ANSIBLE_CONFIG, ansible.cfg in the current working directory, .ansible.cfg in the home directory or /etc/ansible/ansible.cfg, whichever it finds first. As best practices, it is better to create ansible.cfg in playbook directory itself, rather modifying /etc/ansible/ansible.cfg.  

Related questions

0 votes
Aug 24, 2019 in Ansible
0 votes
Aug 24, 2019 in Ansible
...