music: Fix mqtt-soundboard
Some checks failed
Test / build (push) Failing after 1m14s

This commit is contained in:
polyfloyd 2025-06-07 19:40:34 +02:00
parent d0ecc5f105
commit 5d708d2808
4 changed files with 16 additions and 19 deletions

View file

@ -6,25 +6,23 @@
- mplayer
state: present
- ansible.builtin.file:
path: "{{ item }}"
state: absent
with_items:
- /opt/soundboard
- /etc/systemd/system/soundboard.service
- name: Install soundboard config file
ansible.builtin.template:
src: soundboard.yaml
dest: /etc/soundboard.yaml
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: 0644
notify: Restart soundboard
notify: restart mqtt-soundboard
with_items:
- src: mqtt-soundboard.service
dest: /etc/systemd/system/mqtt-soundboard.service
- src: mqtt-soundboard.yaml
dest: /etc/mqtt-soundboard.yaml
- name: Enable soundboard
ansible.builtin.systemd:
name: soundboard
name: mqtt-soundboard
state: started
enabled: true
daemon_reload: true