Allow to specify more options for templating

This commit is contained in:
Luke Murphy
2020-04-16 12:07:41 +02:00
parent a75098c9e1
commit 4e8d3f544d

View File

@ -3,7 +3,8 @@
template: template:
src: "{{ app_config_root }}/templates/{{ item.src }}" src: "{{ app_config_root }}/templates/{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
owner: dokku owner: "{{ item.owner | default('dokku') }}"
group: dokku group: "{{ item.group | default('dokku') }}"
mode: "{{ item.mode | default(omit) }}"
with_items: "{{ config.templates }}" with_items: "{{ config.templates }}"
when: config.templates when: config.templates