2 Commits
1.0.0 ... 1.0.3

Author SHA1 Message Date
ab2ff91939 Music volume shall be mounted read-only. 2022-09-26 15:40:07 +02:00
cf0ba963e8 Create also the music volume if it doesn't exist. 2022-09-26 15:33:55 +02:00
2 changed files with 21 additions and 1 deletions

View File

@@ -15,6 +15,26 @@
- configuration
become: true
- name: Check if the music volume exists
ansible.builtin.stat:
path: "{{ navidrome_music_volume }}"
register: music
tags:
- configuration
- name: Set up music volume
ansible.builtin.file:
state: directory
path: "{{ navidrome_music_volume }}"
owner: "{{ ansible_effective_user_id }}"
group: "{{ ansible_effective_group_id }}"
mode: "0750"
tags:
- configuration
become: true
when: not music.stat.exists
- name: Write configuration files
ansible.builtin.template:
src: "{{ item }}.j2"

View File

@@ -7,7 +7,7 @@ services:
- ~/navidrome/env.navidrome.conf
volumes:
- {{ navidrome_config_volume }}:/data
- {{ navidrome_music_volume }}:/music
- {{ navidrome_music_volume }}:/music:ro
ports:
- {{ navidrome_host_port }}:4533
networks: