music: Add Librespot

This commit is contained in:
polyfloyd 2022-04-15 11:58:11 +02:00
parent 7356db2b8a
commit 2a54ec3ec6
4 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,31 @@
---
- name: Install dependencies
apt:
name: libjack-jackd2-dev
state: present
- name: Clone librespot source
git:
repo: https://github.com/librespot-org/librespot.git
version: dev
dest: /opt/librespot
accept_hostkey: yes
notify:
- rebuild librespot
- restart librespot
- name: Install service file
template:
src: librespot.service
dest: /etc/systemd/system/librespot.service
owner: root
group: root
mode: 0644
notify: restart librespot
- name: Enable Librespot
systemd:
name: librespot
state: started
enabled: true
daemon_reload: true

View file

@ -4,3 +4,6 @@
- tags: music_trollibox
include_tasks: trollibox.yaml
- tags: music_librespot
include_tasks: librespot.yaml