From 94faf739e3803a88571b02d5510fa7ec25b11f3e Mon Sep 17 00:00:00 2001 From: David Kilias Date: Wed, 26 Oct 2022 21:49:57 +0200 Subject: [PATCH] fix: fix missing filepermissions for pottwal --- pottwal.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pottwal.yml b/pottwal.yml index 2298afb..f558dda 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -202,11 +202,14 @@ - name: Ensure the hedgedoc directories exist file: - path: "{{ item }}" + path: "{{ item.path }}" + mode: "{{ item.mode }}" state: directory with_items: - - "{{ data_dir }}/hedgedoc/data/database" - - "{{ data_dir }}/hedgedoc/data/uploads" + - path: "{{ data_dir }}/hedgedoc/data/database" + mode: "0700" + - path: "{{ data_dir }}/hedgedoc/data/uploads" + mode: "0755" - name: Setup docker network docker_network: @@ -267,6 +270,7 @@ - name: Ensure the influxdb directories exist file: path: "{{ item }}" + mode: "0700" state: directory with_items: - "{{ data_dir }}/influxdb" @@ -362,9 +366,10 @@ - name: Ensure the uptime-kuma directories exist file: path: "{{ item }}" + mode: "0755" state: directory with_items: - - "{{ data_dir }}/uptimekuma" + - "{{ data_dir }}/uptime-kuma" - name: Ensure container for uptime-kuma is running docker_container: