diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index 603417b..97fad55 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -17,7 +17,7 @@ music_directory "nfs://example.com/path/to/your/music/" database { plugin "proxy" host {{ hostvars[backendhost]['ansible_facts']['eth1']['ipv4']['address'] }} - host "142.93.181.29" +# host "142.93.181.29" port "8888" password "password" keepalive "yes" diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 9eca6d1..cd8eab9 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -36,9 +36,11 @@ volume_normalization: no audio_buffer_size: 2048 buffer_before_play: "1%" - backendhost: "{{ inventory_hostname |replace ("f", "b") }}" tasks: + - name: "mpd backendhost" + set_fact: + backendhost: "{{ inventory_hostname |replace ("f", "b") }}" - name: Install mpdf on hosts apt: name: mpd