navidrome: also use systemd override
This commit is contained in:
parent
daee2706a4
commit
5c73830cb4
@ -73,12 +73,23 @@
|
|||||||
line: "Environment=HOME={{ dataroot }}/navidrome/"
|
line: "Environment=HOME={{ dataroot }}/navidrome/"
|
||||||
notify: Run daemon-reload for Navidrome
|
notify: Run daemon-reload for Navidrome
|
||||||
|
|
||||||
- name: Allow Navidrome to write in data directory
|
- name: Create systemd override dir
|
||||||
lineinfile:
|
file:
|
||||||
dest: /usr/lib/systemd/system/navidrome.service
|
path: /etc/systemd/system/navidrome.service.d/
|
||||||
regexp: "^ReadWritePaths=.*"
|
state: directory
|
||||||
line: "ReadWritePaths={{ dataroot }}/navidrome/"
|
owner: root
|
||||||
notify: Run daemon-reload for Navidrome
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Deploy systemd override conf
|
||||||
|
template:
|
||||||
|
src: navidrome.service.j2
|
||||||
|
dest: /etc/systemd/system/navidrome.service.d/override.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
notify:
|
||||||
|
- Run daemon-reload for Navidrome
|
||||||
|
|
||||||
- name: Configure Navidrome
|
- name: Configure Navidrome
|
||||||
template:
|
template:
|
||||||
|
6
roles/services/navidrome/templates/navidrome.service.j2
Normal file
6
roles/services/navidrome/templates/navidrome.service.j2
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Service]
|
||||||
|
ReadWritePaths={{ dataroot }}/navidrome/
|
||||||
|
CPUWeight=20
|
||||||
|
CPUQuota=85%
|
||||||
|
IOWeight=20
|
||||||
|
MemorySwapMax=0
|
Reference in New Issue
Block a user