Feat: add mpd role and enable it to nas

This commit is contained in:
2022-08-18 21:42:48 +02:00
parent db8a7e758e
commit 5ad74e8f9d
14 changed files with 208 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
music_directory "{{ mpd_music_directory }}"
playlist_directory "{{ mpd_playlist_directory }}"
db_file "{{ mpd_db_file }}"
sticker_file "{{ mpd_sticker_file }}"
state_file "{{ mpd_state_file }}"
user "{{ mpd_user }}"
bind_to_address "{{ mpd_bind_to_address }}"
log_file "syslog"
restore_paused "{% if mpd_restore_paused %}yes{% else %}no{% endif %}"
auto_update "{% if mpd_auto_update %}yes{% else %}no{% endif %}"
follow_inside_symlinks "{% if mpd_follow_inside_symlinks %}yes{% else %}no{% endif %}"
follow_outside_symlinks "{% if mpd_follow_outside_symlinks %}yes{% else %}no{% endif %}"
zeroconf_enabled "yes"
zeroconf_name "{{ mpd_name }}"
input {
plugin "curl"
verify_peer "yes"
verify_host "yes"
}
{% for output in mpd_outputs %}
audio_output {
{% for k, v in output.items() %}
{{ k }} "{{ v }}"
{% endfor %}
}
{% endfor %}