music: Remove skipbutton service
This commit is contained in:
parent
6927806972
commit
64ffeeb512
2 changed files with 0 additions and 48 deletions
|
@ -51,34 +51,3 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
||||||
- name: Install skipbutton depedencies
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- python3-mpd
|
|
||||||
- python3-serial
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Clone skipbutton source
|
|
||||||
ansible.builtin.git:
|
|
||||||
repo: https://github.com/bitlair/skipbutton.git
|
|
||||||
version: master
|
|
||||||
dest: /opt/skipbutton
|
|
||||||
accept_hostkey: yes
|
|
||||||
notify: Restart skipbutton
|
|
||||||
|
|
||||||
- name: Install skipbutton service
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: skipbutton.service
|
|
||||||
dest: /etc/systemd/system/skipbutton.service
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0644
|
|
||||||
notify: Restart skipbutton
|
|
||||||
|
|
||||||
- name: Enable skipbutton
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: skipbutton
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
||||||
daemon_reload: true
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
# {{ ansible_managed }}
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=MPD Skipbutton
|
|
||||||
After=network.target
|
|
||||||
Requires=mpd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10s
|
|
||||||
ExecStart=/opt/skipbutton/skipbutton.py /dev/ttyS0
|
|
||||||
DynamicUser=true
|
|
||||||
Group=dialout
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
Loading…
Add table
Add a link
Reference in a new issue