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
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 2 deletions

View File

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