Skip to content

Instantly share code, notes, and snippets.

@michaelgugino
Created April 4, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelgugino/416057206f4e79d9fb7ca4f72f3f6812 to your computer and use it in GitHub Desktop.
Save michaelgugino/416057206f4e79d9fb7ca4f72f3f6812 to your computer and use it in GitHub Desktop.
Use the vars!
- name: do x
x:
something: "{{ l_do_x_var }}"
vars:
l_do_x_default: "{{ big_ugly_registered_var.stat.something[1] }}"
l_do_x_var: "{{ my_inventory_var | default(l_do_x_default) }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment