vikunja: Fix upload files directory permissions

This commit is contained in:
saibotk 2021-09-16 08:09:57 +02:00
parent ba4678d2dd
commit 7aeab0e60e
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -43,13 +43,24 @@
- "{{ vikunja_install_location }}"
become: true
- name: Create data directories
- name: Create database directory
file: # noqa risky-file-permissions # Container manages permissions on its own
path: "{{ item }}"
state: directory
setype: "container_file_t"
with_items:
- "{{ vikunja_database_location }}"
become: true
- name: Create files directory
file:
path: "{{ item }}"
state: directory
mode: '0700'
owner: '1000'
group: '1000'
setype: "container_file_t"
with_items:
- "{{ vikunja_api_files_location }}"
become: true
@ -70,7 +81,7 @@
src: "config.yml"
dest: "{{ vikunja_install_location }}/config.yml"
owner: '1000'
group: 'root'
group: '1000'
mode: '0600'
setype: "container_file_t"
selevel: "{{ vikunja_selinux_level }}"