Working sound setup for raspis
This commit is contained in:
BIN
roles/pi-sispmctl/files/sispmctl-4.7.tar.gz
Normal file
BIN
roles/pi-sispmctl/files/sispmctl-4.7.tar.gz
Normal file
Binary file not shown.
36
roles/pi-sispmctl/files/sispmctl.service
Normal file
36
roles/pi-sispmctl/files/sispmctl.service
Normal file
@@ -0,0 +1,36 @@
|
||||
[Unit]
|
||||
Description=SiS PM Control for Linux
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Wants=systemd-udev-settle.service
|
||||
After=systemd-udev-settle.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
CapabilityBoundingSet=
|
||||
LockPersonality=true
|
||||
MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
PrivateUsers=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectSystem=strict
|
||||
RemoveIPC=true
|
||||
RestrictAddressFamilies=AF_INET AF_INET6
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallArchitectures=native
|
||||
UMask=177
|
||||
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/sispmctl -p 2638 -l
|
||||
SyslogIdentifier=sispmctl
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
21
roles/pi-sispmctl/tasks/main.yml
Normal file
21
roles/pi-sispmctl/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user