From ad109ae70b9a779f54fa1895471a1ace80c403ac Mon Sep 17 00:00:00 2001 From: erebion Date: Mon, 4 Sep 2023 19:40:24 +0200 Subject: [PATCH] optimised permissions for folder creation --- roles/docker_pretix/tasks/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/docker_pretix/tasks/main.yml b/roles/docker_pretix/tasks/main.yml index 4b63129..ca01aeb 100644 --- a/roles/docker_pretix/tasks/main.yml +++ b/roles/docker_pretix/tasks/main.yml @@ -5,6 +5,15 @@ pkg: - docker.io +- name: "Create directories for Pretix" + ansible.builtin.file: + path: "{{ docker_volumes_dir }}/pretix" + state: directory + owner: root + group: root + mode: '0750' + recurse: true + - name: "Create directories for Pretix" ansible.builtin.file: path: "{{ item }}" @@ -12,7 +21,6 @@ owner: 15371 group: 15371 mode: '0750' - recurse: true with_items: - "{{ docker_volumes_dir }}/pretix/data" - "{{ docker_volumes_dir }}/pretix/conf" @@ -24,7 +32,6 @@ owner: 1337 #this is the ID Pretix uses group: 1337 mode: '0750' - recurse: true with_items: - "{{ docker_volumes_dir }}/pretix/postgres-db"