music: Update mpd-volume-to-mqtt script

This commit is contained in:
polyfloyd 2024-04-14 20:30:50 +02:00
parent 40093a5936
commit 84e3dc8478
5 changed files with 69 additions and 0 deletions

View file

@ -5,3 +5,28 @@
- jackd
- mpd
state: present
- name: Install mpd-volume-to-mqtt script
template:
src: mpd-volume-to-mqtt.sh
dest: /opt/mpd-volume-to-mqtt.sh
owner: root
group: root
mode: 0644
notify: restart mpd-volume-to-mqtt
- name: Install mpd-volume-to-mqtt service
template:
src: mpd-volume-to-mqtt.service
dest: /etc/systemd/system/mpd-volume-to-mqtt.service
owner: root
group: root
mode: 0644
notify: restart mpd-volume-to-mqtt
- name: Enable mpd-volume-to-mqtt
systemd:
name: mpd-volume-to-mqtt
state: started
enabled: true
daemon_reload: true