Skip to content

Instantly share code, notes, and snippets.

@packeteer
Created August 9, 2016 07:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save packeteer/14a4c912958976e917f9ea2d39f0d6af to your computer and use it in GitHub Desktop.
Save packeteer/14a4c912958976e917f9ea2d39f0d6af to your computer and use it in GitHub Desktop.
role defaults
inventory vars
inventory group_vars
inventory host_vars
playbook group_vars
playbook host_vars
host facts
registered vars
set_facts
play vars
play vars_prompt
play vars_files
role and include vars
block vars (only for tasks in block)
task vars (only for the task)
extra vars
@packeteer
Copy link
Author

packeteer commented Aug 9, 2016

alternate example:

vars.yml
'include' in example.yml
'vars' in included.yml
'vars' in example.yml
localhost, a french production server in prod/ansible_hosts
a french server production in prod/ansible_hosts
a european server production in prod/ansible_hosts
a server production in prod/ansible_hosts
host_vars/localhost
groups_var/france
groups_var/europe
groups_var/all
prod/host_vars/localhost
prod/groups_var/france
prod/groups_var/europe
prod/groups_var/all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment