Skip to content

Instantly share code, notes, and snippets.

@jfindlay
Last active January 22, 2016 19:13
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 jfindlay/53e3fbd5bf69b9efe7c9 to your computer and use it in GitHub Desktop.
Save jfindlay/53e3fbd5bf69b9efe7c9 to your computer and use it in GitHub Desktop.
# ID == name
/file/one: # ID and name
file.absent:
# ID != name
remove file one: # ID
file.absent:
- name: /file/one # name
{% set names = ['/file/one', '/file/two'] %}
# use names
remove all files:
file.absent:
- names: {{ names }}
# use jinja
{% for name in names %}
remove all files:
file.absent:
- name: {{ name }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment