27 lines
782 B
YAML
27 lines
782 B
YAML
---
|
|
- name: Uninstall system package of squeezelite
|
|
apt: name=squeezelite state=absent
|
|
- name: Install dependencies
|
|
apt:
|
|
name:
|
|
- libmad0
|
|
- libmpg123-0
|
|
- libflac8
|
|
- libvorbisfile3
|
|
- libfaad2
|
|
state: present
|
|
cache_valid_time: 7200
|
|
- name: Remove old config file if present
|
|
file: path=/etc/default/squeezelite state=absent
|
|
- name: Copy over custom compile version of squeezelite
|
|
copy: src=squeezelite dest=/opt/squeezelite mode=700
|
|
- name: Install systemd service file
|
|
template: src=squeezelite.service dest=/lib/systemd/system/
|
|
- name: Enable sysdweb autostart
|
|
systemd: name=squeezelite state=restarted enabled=yes daemon_reload=yes
|
|
- name: Add to sysdweb
|
|
include_role:
|
|
name: pi-sysdweb
|
|
vars:
|
|
sysdweb_name: squeezelite
|