refactor: move to Debian on truenas scale

This commit is contained in:
2023-03-25 04:28:41 -07:00
parent a6c370b85a
commit ed426593d4
26 changed files with 251 additions and 158 deletions

View File

@@ -4,13 +4,13 @@
file:
path: "{{ current_svc_path }}"
state: directory
mode: "500"
mode: "700"
- name: Ensure directory structure exists
file:
path: "{{ current_svc_path }}/{{ item.path }}"
state: directory
mode: "500"
mode: "700"
with_community.general.filetree: "{{ templates_source }}"
when: item.state == "directory"
@@ -23,7 +23,7 @@
template:
src: "{{ item.src }}"
dest: "{{ current_svc_path }}/{{ item.path | regex_replace('\\.j2$', '') }}"
mode: "400"
mode: "600"
with_community.general.filetree: "{{ templates_source }}"
when: item.state == "file"