Last active
August 29, 2015 14:01
-
-
Save AntelopeSalad/01df16763eba2a12bb7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# host_vars/all.yml | |
foo_master = "{{ groups['blah'][0] }}" | |
# ^ For some reason foo_master is ignored here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# roles/foo/defaults/main.yml | |
foo_master = "{{ groups['app'][0] }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# roles/foo/defaults/tasks.yml | |
- debug: var=foo_master | |
# ^ This value is always the default value from the role. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment