From 54cf38271071b4155ba6262b38d5757d0ca8337e Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 6 Jan 2024 18:14:56 +0000 Subject: [PATCH] Fix #28: Set directory permissions (#29) Since we are using `user:` in docker-compose, we need to set the directory permissions so that everything doesn't crash immediately. Reviewed-on: https://git.koval.net/cyclane/kovalhome/pulls/29 --- infra/music/0003_music_playbook.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/infra/music/0003_music_playbook.yaml b/infra/music/0003_music_playbook.yaml index 14f5157..9a80874 100644 --- a/infra/music/0003_music_playbook.yaml +++ b/infra/music/0003_music_playbook.yaml @@ -47,3 +47,19 @@ ansible.builtin.command: docker compose up -d args: 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