ansible/roles/music/templates/librespot.service
polyfloyd 6927806972
Some checks failed
Test / build (push) Failing after 59s
music: Add the base audio server
2025-05-14 23:45:03 +02:00

16 lines
374 B
Desktop File

# {{ ansible_managed }}
[Unit]
Description=Spotify through Librespot
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend pulseaudio --volume-ctrl linear
Environment="PULSE_SERVER={{ music_pulse_server }}"
User={{ music_librespot_user }}
[Install]
WantedBy=multi-user.target