Interview Prep/Ansible/Vault, Performance and Execution Behaviour

A setting in your `ansible.cfg` has no effect

BeginnerTroubleshootingVault, Performance and Execution Behaviour
Answer

Likely causes → Another config file wins. Ansible uses the first file it finds and never merges them: ANSIBLE_CONFIG, then ./ansible.cfg, then ~/.ansible.cfg, then /etc/ansible/ansible.cfg. An environment variable such as ANSIBLE_FORKS overrides the file. The setting may also be in the wrong [section].

Diagnose →

ansible --version | grep 'config file'
ansible-config dump --only-changed
env | grep ^ANSIBLE_

Fix → Run from the project root, or export ANSIBLE_CONFIG. Move the key into the section that ansible-config list documents for it.

Prevent → Start CI jobs by printing ansible --version and ansible-config dump --only-changed.

All Ansible questions Roadmap: Ansible

More on Vault, Performance and Execution Behaviour