Add mpd task

This commit is contained in:
Sonny Bakker 2021-10-30 14:27:52 +02:00
parent d49301bd44
commit 73a066213d
5 changed files with 450 additions and 1 deletions

21
tasks/mpd.yml Normal file
View file

@ -0,0 +1,21 @@
- name: copy mpd template
template:
src: 'templates/mpd.j2'
dest: '{{ ansible_env.HOME }}/.config/mpd/mpd.conf'
mode: '0640'
- name: created mpd files
file:
src: '{{ item }}'
state: touch
loop:
- 'db'
- 'state'
- 'sticker.sql'
- name: restart mpd service
systemd:
name: mpd
state: restarted
enabled: true
scope: user