Skip to content

Instantly share code, notes, and snippets.

@packeteer
Created August 9, 2016 07:45
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