Working sound setup for raspis

This commit is contained in:
Martin Bauer
2020-05-10 15:25:38 +02:00
parent caf6232dfb
commit d8c9a491d1
40 changed files with 815 additions and 43 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Install dependencies
apt: name=libusb-dev cache_valid_time=7200 state=present
- name: Copy sispmctl sources
unarchive:
src: sispmctl-4.7.tar.gz
dest: /tmp
creates: /usr/local/bin/sispmctl
- name: Build and install
command: cd /tmp/sispmctl*/ && ./configure && make install
creates: /usr/local/bin/sispmctl
- name: Install systemd service file
copy: src=sispmctl.service dest=/lib/systemd/system/
- name: Add script to autostart and start now
systemd: name=sispmctl state=started enabled=yes daemon_reload=yes
- name: Add to sysdweb
include_role:
name: pi-sysdweb
vars:
sysdweb_name: sispmctl