# Variables & Data

"Why isn't my variable taking effect?" is the most common Ansible support question there is. This section is the complete, definitive answer — starting broad, then narrowing to the exact precedence order.

## Read in this order

1. [Variable Types and Sources](<https://computecentral.in/ansible/variables-and-data/01-variable-types-and-sources/index.md>)
2. [Variable Precedence](<https://computecentral.in/ansible/variables-and-data/02-variable-precedence/index.md>) — the definitive order, highest to lowest
3. [Facts](<https://computecentral.in/ansible/variables-and-data/03-facts/index.md>)
4. [Registered Variables](<https://computecentral.in/ansible/variables-and-data/04-registered-variables/index.md>)
5. [Magic Variables and Hostvars](<https://computecentral.in/ansible/variables-and-data/05-magic-variables-and-hostvars/index.md>)
6. [set\_fact and combine](<https://computecentral.in/ansible/variables-and-data/06-set-fact-and-combine/index.md>)

## Related

- [Variable Precedence Cheat Sheet](<https://computecentral.in/ansible/quick-reference/03-variable-precedence-cheat-sheet/index.md>) — the pyramid, no prose
- [Jinja2 & Templates](<https://computecentral.in/ansible/jinja2-and-templates/index.md>) — what you do with a variable once you have it

## Next

Continue to [Jinja2 & Templates](<https://computecentral.in/ansible/jinja2-and-templates/index.md>).
