Interview Prep/Ansible/Rapid-Fire Commands

How do you see the effective Ansible configuration?

BeginnerProductionRapid-Fire Commands
Answer
ansible --version                    # which ansible.cfg is in use, Python, collection paths
ansible-config dump --only-changed   # settings different from defaults, with their source
ansible-config init --disabled > ansible.cfg.example   # full commented template

The first command answers the classic "why is my ansible.cfg ignored" question: it prints the config file actually loaded.

All Ansible questions Roadmap: Ansible

More on Rapid-Fire Commands