diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index b6e3150..c63228a 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -24,7 +24,7 @@ database { # playlist files not created by the server but only if they are in the MPD # format. This setting defaults to playlist saving being disabled. # -playlist_directory {{ playlist_directory }} +playlist_directory {{ [path,item,playlist_directory]|join }} # # This setting sets the location of the MPD database. This file is used to # load the database at server start up and store the database while the diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 92d9991..1dfa6de 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -3,10 +3,8 @@ vars: #we need to loop over the /var/lib/mpd{{ count }} directory for the files/folders below. we need to loop over the stream ports as well count: 5 - path: /var/lib/ - service_name: "{{ mpd + item }}" - add_path: "{{ path ~ service_name }}" - playlist_directory: "{{ add_path ~ 'playlist/' }}" + path: /var/lib/mpd + playlist_directory: playlist db_file: tag_cache log_file: mpd.log pid_file: pid