optimised permissions for folder creation
This commit is contained in:
parent
425d39ac3e
commit
ad109ae70b
1 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,15 @@
|
||||||
pkg:
|
pkg:
|
||||||
- docker.io
|
- 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"
|
- name: "Create directories for Pretix"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -12,7 +21,6 @@
|
||||||
owner: 15371
|
owner: 15371
|
||||||
group: 15371
|
group: 15371
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
recurse: true
|
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ docker_volumes_dir }}/pretix/data"
|
- "{{ docker_volumes_dir }}/pretix/data"
|
||||||
- "{{ docker_volumes_dir }}/pretix/conf"
|
- "{{ docker_volumes_dir }}/pretix/conf"
|
||||||
|
@ -24,7 +32,6 @@
|
||||||
owner: 1337 #this is the ID Pretix uses
|
owner: 1337 #this is the ID Pretix uses
|
||||||
group: 1337
|
group: 1337
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
recurse: true
|
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ docker_volumes_dir }}/pretix/postgres-db"
|
- "{{ docker_volumes_dir }}/pretix/postgres-db"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue