service_base var

This commit is contained in:
Tobias Manske 2023-05-05 22:30:21 +02:00
parent 53bfbef047
commit 6ff153b716
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -12,7 +12,7 @@
dest: '{{ temp_file.path }}/{{ item.path }}'
mode: "{{ item.mode }}"
changed_when: false
with_filetree: "./templates/{{ service | mandatory }}"
with_filetree: "{{ service_base }}/{{ service | mandatory }}"
when: item.state == 'directory'
loop_control:
label: '{{ item.path }}'
@ -24,7 +24,7 @@
force: true
trim_blocks: false
changed_when: false
with_filetree: "./templates/{{ service | mandatory }}"
with_filetree: "{{ service_base }}/{{ service | mandatory }}"
loop_control:
label: '{{ item.path }}'
when: item.state == 'file'