fix mode for files

This commit is contained in:
Gabriel Augendre 2024-10-14 20:12:39 +02:00
parent d94c594d4b
commit fbdfcaac4d
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ dir }}/"
mode: "0600"
mode: preserve
with_fileglob:
- files/{{ app_name }}/*
- files/{{ app_name }}/.*

View file

@ -8,7 +8,7 @@
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ docker_dir }}/"
mode: "0600"
mode: preserve
with_fileglob:
- files/{{ docker_app_name }}/*
- files/{{ docker_app_name }}/.*
@ -18,7 +18,7 @@
ansible.builtin.template:
src: "{{ item }}"
dest: "{{ docker_dir }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
mode: "0600"
mode: preserve
with_fileglob:
- templates/{{ docker_app_name }}/*.j2
- templates/{{ docker_app_name }}/.*.j2