Update mpd configuration

This commit is contained in:
Sonny Bakker 2024-09-16 08:34:45 +02:00
parent ebb8f8c2c2
commit b1965fc631
5 changed files with 65 additions and 6 deletions

View file

@ -22,6 +22,7 @@
loop:
- { path: '{{ mpd_configuration_dir }}', state: 'directory' }
- { path: '{{ ncmpc_configuration_dir }}', state: 'directory' }
- { path: '{{ ncmpcpp_configuration_dir }}', state: 'directory' }
- { path: '{{ mpd_configuration_dir }}/playlists', state: 'directory' }
- { path: '{{ mpd_configuration_dir }}/state', state: 'touch' }
@ -41,8 +42,14 @@
loop:
- { src: 'templates/mpd/mpd.conf.j2', dest: '{{ mpd_configuration_dir }}/mpd.conf' }
- { src: 'templates/mpd/ncmpc.j2', dest: '{{ ncmpc_configuration_dir }}/config' }
- { src: 'templates/mpd/ncmpcpp/config.j2', dest: '{{ ncmpcpp_configuration_dir }}/config' }
- {
src: 'templates/mpd/ncmpcpp/bindings.j2',
dest: '{{ ncmpcpp_configuration_dir }}/bindings'
}
notify:
- stop mpd service
# TODO: install https://aur.archlinux.org/mpd-mpris-bin.git from AUR
# Use mpc to control local mpd server.
# Use $ mpc add http://{{ mpd_remote_address }}:{{ mpd_remote_stream_port }}