- role defaults
- inventory file or script group vars
- inventory group_vars/all
- playbook group_vars/all
- inventory group_vars/*
- playbook group_vars/*
- inventory file or script host vars
- inventory host_vars/*
- playbook host_vars/*
- host facts
- play vars
- play vars_prompt
- play vars_files
- role vars (defined in role/vars/main.yml)
- block vars (only for tasks in block)
- task vars (only for the task)
- role (and include_role) params
- include params
- include_vars
- set_facts / registered vars
- extra vars (always win precedence)
Forked from ekreutz/ansible_variable_precedence.md
Last active
January 22, 2021 14:17
-
-
Save jhanssenfavaro/a8864539e8083f61d370d0005495086a to your computer and use it in GitHub Desktop.
Ansible variable precedence (order, hierarchy)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment