diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index a216261..15549c6 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -63,7 +63,7 @@ state_file "{{ [path,state_file,item]|join() }}" # The location of the sticker database. This is a database which # manages dynamic information attached to songs. # -sticker_file "{{ [path,sticker_file,item,'.sql']|join() }}" +sticker_file "{{ [path,sticker_file,'.sql']|join() }}" ############################################################################### diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 9813f75..1f5087d 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -74,6 +74,14 @@ group: root mode: '0755' loop: "{{ range(1,count|int + 1) }}" + - name: copy sticker.sql + copy: + src: "/var/lib/mpd/sticker.sql" + dest: "var/lib/mpd{{ item }}/sticker.sql" + owner: root + group: root + mode: '0644' + loop: "{{ range(1,count|int + 1) }}" - name: setup service on hosts template: src: mpdf.service.j2