add context to script templates

This commit is contained in:
Hugo Chinchilla Carbonell 2017-09-06 15:48:11 +02:00
parent a30276a1dc
commit 55d9e99bbd

View file

@ -20,6 +20,7 @@ consul-script-install-{{ loop.index }}:
- source: {{ script.source }} - source: {{ script.source }}
- name: {{ script.name }} - name: {{ script.name }}
- template: jinja - template: jinja
- context: {{ template.get('context', {}) | yaml }}
- user: consul - user: consul
- group: consul - group: consul
- mode: 0755 - mode: 0755