Interview Prep/Ansible/Fundamentals and Architecture

How do you see which configuration settings are active and where they came from?

BeginnerConceptFundamentals and Architecture
Answer
ansible-config view                    # print the config file in use
ansible-config dump --only-changed     # settings that differ from defaults, with origin
ansible-config list | less             # every setting, env var and ini key

dump shows the source of each value (env, ini, default), which is the fastest way to find out why a setting is not taking effect.

All Ansible questions Roadmap: Ansible

More on Fundamentals and Architecture