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 }}"
|
- "{{ vikunja_install_location }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Create data directories
|
- name: Create database directory
|
||||||
file: # noqa risky-file-permissions # Container manages permissions on its own
|
file: # noqa risky-file-permissions # Container manages permissions on its own
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
setype: "container_file_t"
|
setype: "container_file_t"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ vikunja_database_location }}"
|
- "{{ 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 }}"
|
- "{{ vikunja_api_files_location }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
@ -70,7 +81,7 @@
|
||||||
src: "config.yml"
|
src: "config.yml"
|
||||||
dest: "{{ vikunja_install_location }}/config.yml"
|
dest: "{{ vikunja_install_location }}/config.yml"
|
||||||
owner: '1000'
|
owner: '1000'
|
||||||
group: 'root'
|
group: '1000'
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
setype: "container_file_t"
|
setype: "container_file_t"
|
||||||
selevel: "{{ vikunja_selinux_level }}"
|
selevel: "{{ vikunja_selinux_level }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue