forked from bitlair/ansible
music: Add Librespot
This commit is contained in:
parent
7356db2b8a
commit
2a54ec3ec6
4 changed files with 65 additions and 0 deletions
20
roles/music/templates/librespot.service
Normal file
20
roles/music/templates/librespot.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# Managed by Ansible
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Spotify through Librespot
|
||||
After=network.target
|
||||
Requires=jackd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend jackaudio
|
||||
User={{ music_audio_user }}
|
||||
Group={{ music_audio_user }}
|
||||
AmbientCapabilities=CAP_IPC_LOCK,CAP_SYS_NICE
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue