music: Add MPD
Some checks failed
Test / build (push) Failing after 53s

This commit is contained in:
polyfloyd 2025-05-14 21:26:36 +02:00
parent 43075d27fe
commit 7cd44bbe53
5 changed files with 115 additions and 6 deletions

View file

@ -1,14 +1,32 @@
---
- name: Install MPD
ansible.builtin.apt:
name:
- jackd
- mpd
- python3-mpd
- python3-serial
name: mpd
state: present
- name: Add mpd user to the {{ music_audio_group }} group
user:
name: mpd
groups:
- "{{ music_audio_group }}"
notify: restart mpd
- name: Install mpd file
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: 0644
notify: restart mpd
with_items:
- src: mpd.conf
dest: /etc/mpd.conf
- src: mpd.service
dest: /etc/systemd/system/mpd.service
- src: mpd_state
dest: /var/lib/mpd/state.default
- name: Install mpd-volume-to-mqtt script
ansible.builtin.template:
src: mpd-volume-to-mqtt.sh
@ -34,6 +52,13 @@
enabled: 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