in Ansible by
In which order Ansible check for ansible.cfg file?

► Click here to show 1 Answer

0 votes

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.  

Learn More with Madanswer

Related questions

0 votes
asked Aug 24, 2019 in Ansible by rahulsharma