diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index 9b0675a..382fd07 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -11,16 +11,17 @@ # file:// protocol) or streaming files over an accepted protocol. # #######need to fix this one too -music_directory "nfs://example.com/path/to/your/music/" + database { - plugin "proxy" - host "{{ droplets.data[0].networks.v4[0].ip_address }}" + plugin "simple" +# host "{{ droplets.data[0].networks.v4[0].ip_address }}" # host "142.93.181.29" - port "6600" - password "HelloKitty" - keepalive "yes" +# port "6600" +# password "HelloKitty" + path "{{ [path,item,'/db']|join() }}" + #keepalive "yes" } #music_directory @@ -303,6 +304,11 @@ audio_output { # format "44100:16:1" max_clients "0" # optional 0=no limit } +#cache songs on the server +input_cache { + size "1 GB" +} + # An example of a pulseaudio output (streaming to a remote pulseaudio server) # #audio_output { diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 22b7efd..5790bfe 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -49,6 +49,10 @@ apt: name: mpd state: present + - name: Install sshfs on hosts + apt: + name: sshfs + state: present - name: setup config on hosts template: src: mpdf.conf.j2