vikunja: Fix upload files directory permissions
This commit is contained in:
parent
ba4678d2dd
commit
7aeab0e60e
1 changed files with 13 additions and 2 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue