ansible/roles/music/tasks/soundboard.yaml
polyfloyd 5ab22d0e96
Some checks failed
Test / build (push) Failing after 56s
music: Install mqtt-soundboard from Debian package
2025-04-27 18:59:37 +02:00

30 lines
608 B
YAML

---
- name: Install dependencies
ansible.builtin.apt:
name:
- mqtt-soundboard
- 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
owner: root
group: root
mode: 0644
notify: Restart soundboard
- name: Enable soundboard
ansible.builtin.systemd:
name: soundboard
state: started
enabled: true
daemon_reload: true