How to determine variable precedence
Lowest precedence to hightest
- Role default variables
- Inventory variables
- Inventory group_vars variables:
- Inventory host_vars variables:
- group_vars variables defined in group_vars directory
- host_vars variables defined in host_vars directory
- Host facts
- Registered variables
- Variables defined via set_facts:
- Variables defined with -a or –args
- vars_prompt variables
- Variables included using vars_files
- role and include variables
- Block variables
- Task variables
- extra variables
Leave a comment