service: set reasonable defaults for copypath modes

This commit is contained in:
uumas
2025-03-27 22:20:07 +02:00
parent 53af0b80f6
commit 5b4bea1b09

View File

@@ -41,7 +41,8 @@
copy: copy:
src: "files/{{ item.copypath }}" src: "files/{{ item.copypath }}"
dest: "{{ docker_mounts_dir }}/" dest: "{{ docker_mounts_dir }}/"
mode: "{{ item.mode | default('0755') }}" directory_mode: "{{ item.mode | default('0755') }}"
mode: "{{ item.mode | default('0644') }}"
when: item.copypath is defined when: item.copypath is defined
loop: "{{ docker_mounts }}" loop: "{{ docker_mounts }}"
notify: Restart container notify: Restart container