Categories

Aug 24, 2019 in Ansible

Q: In which order Ansible check for ansible.cfg file?

1 Answer

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.  

Click here to read more about Ansible
Click here to read more about Insurance

Related questions

Madanswer
Aug 24, 2019 in Ansible
Aug 24, 2019 in Ansible
Aug 24, 2019 in Ansible
...