Ansible configuration files priority

  1. ANSIBLE_CONFIG - environment variable with a filename target
  2. ./ansible.cfg - file in the current directory
  3. ~/.ansible.cfg - a hidden file in the users home directory
  4. /etc/ansible/ansible.cfg - typically provided via packages or system installations of Ansible