1 Answer

0 votes
by

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.  

...