Interview Prep/Real-World Interview/Terraform and Ansible

Where do you put variables in Ansible, lowest to highest priority, briefly?

AdvancedConceptTerraform and Ansible
Answer

Role defaults/ (lowest), then inventory and group_vars/host_vars, then play vars, then role vars/, then set_fact/registered vars, and finally -e extra vars, which always win.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible