Procházet zdrojové kódy

trying a join in the template with jinja

master
Erin Sims před 2 roky
rodič
revize
3e335150fc
2 změnil soubory, kde provedl 3 přidání a 5 odebrání
  1. +1
    -1
      playbooks/mpdf.conf.j2
  2. +2
    -4
      playbooks/mpdf.yaml

+ 1
- 1
playbooks/mpdf.conf.j2 Zobrazit soubor

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

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


Načítá se…
Zrušit
Uložit