music: Extend Trollibox installation

This commit is contained in:
polyfloyd 2022-04-15 11:57:44 +02:00
parent f8dd32b234
commit 7356db2b8a
5 changed files with 46 additions and 0 deletions

View file

@ -1,3 +1,6 @@
---
- tags: music_mpd
include_tasks: mpd.yaml
- tags: music_trollibox
include_tasks: trollibox.yaml

View file

@ -0,0 +1,7 @@
---
- name: Install MPD
apt:
name:
- jackd
- mpd
state: present

View file

@ -11,3 +11,19 @@
- name: Initial build
meta: flush_handlers
- name: Install service file
template:
src: trollibox.service
dest: /etc/systemd/system/trollibox.service
owner: root
group: root
mode: 0644
notify: restart trollibox
- name: Enable Trollibox
systemd:
name: trollibox
state: started
enabled: true
daemon_reload: true