music: Remove shutdown-sound service in favor of soundboard
This commit is contained in:
parent
21884f3b3c
commit
40093a5936
9 changed files with 8 additions and 56 deletions
|
@ -46,27 +46,3 @@
|
|||
state: started
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
||||
- name: Install shutdown sound script
|
||||
template:
|
||||
src: shutdown-sound.sh
|
||||
dest: /opt/shutdown-sound.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Install shutdown sound service
|
||||
template:
|
||||
src: shutdown-sound.service
|
||||
dest: /etc/systemd/system/shutdown-sound.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: daemon reload
|
||||
|
||||
- name: Enable shutdown-sound
|
||||
systemd:
|
||||
name: shutdown-sound
|
||||
state: started
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#
|
||||
# Managed by Ansible
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Spotify through Librespot
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# Managed by Ansible
|
||||
|
||||
[Unit]
|
||||
Description=Goodbye
|
||||
Requires=mpd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/true
|
||||
ExecStop=/opt/shutdown.sh
|
||||
RemainAfterExit=true
|
||||
User=audio
|
||||
Group=audio
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Managed by Ansible
|
||||
|
||||
systemctl stop trollibox.service
|
||||
mpc clear
|
||||
|
||||
su audio -c 'mplayer -volume 10 -ao jack:name=MPlayer /opt/sounds/shutdown.mp3'
|
|
@ -1,4 +1,4 @@
|
|||
# Managed by Ansible
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=MQTT Soundboard
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
loglevel: INFO
|
||||
|
||||
mqtt:
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#
|
||||
# Managed by Ansible
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Trollibox
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Managed by Ansible
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# The network address to listen on. Must be in the Go listen format.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue