optimised permissions for folder creation

This commit is contained in:
erebion 2023-09-04 19:40:24 +02:00
parent 425d39ac3e
commit ad109ae70b

View file

@ -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"