Fix #28: Set directory permissions (#29)
Infrastructure / Check and run Ansbile playbooks (push) Failing after 2m23s Details

Since we are using `user:` in docker-compose, we need to set the directory permissions so that everything doesn't crash immediately.

Reviewed-on: #29
This commit is contained in:
Gleb Koval 2024-01-06 18:14:56 +00:00
parent d4d5511b78
commit 54cf382710
1 changed files with 16 additions and 0 deletions

View File

@ -47,3 +47,19 @@
ansible.builtin.command: docker compose up -d ansible.builtin.command: docker compose up -d
args: args:
chdir: "{{ user.home }}/{{ app }}" chdir: "{{ user.home }}/{{ app }}"
- name: Update data permissions
ansible.builtin.file:
path: /mnt/nvme
state: directory
recurse: yes
owner: debian
group: debian
- name: Update media permissions
ansible.builtin.file:
path: /mnt/media
state: directory
recurse: yes
owner: debian
group: debian