From 3e335150fc65f6fd036ad29e340a98ffe514b549 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Wed, 7 Sep 2022 18:39:44 -0400 Subject: [PATCH] trying a join in the template with jinja --- playbooks/mpdf.conf.j2 | 2 +- playbooks/mpdf.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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