Parcourir la source

trying a join in the template with jinja

master
Erin Sims il y a 2 ans
Parent
révision
3e335150fc
2 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. +1
    -1
      playbooks/mpdf.conf.j2
  2. +2
    -4
      playbooks/mpdf.yaml

+ 1
- 1
playbooks/mpdf.conf.j2 Voir le fichier

@@ -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


+ 2
- 4
playbooks/mpdf.yaml Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer