diff --git a/playbooks/create_droplet.yml b/playbooks/create_droplet.yml index aff3cdb..740ac96 100644 --- a/playbooks/create_droplet.yml +++ b/playbooks/create_droplet.yml @@ -1,7 +1,7 @@ --- - hosts: localhost connection: local - gather_facts: false + gather_facts: true vars: mpdf: - 'nyc3-mpdf' diff --git a/playbooks/delete_droplet.yml b/playbooks/delete_droplet.yml index b96efa1..d4b2fb3 100644 --- a/playbooks/delete_droplet.yml +++ b/playbooks/delete_droplet.yml @@ -1,7 +1,7 @@ --- - hosts: localhost connection: local - gather_facts: false + gather_facts: true vars: mpdf: - 'nyc3-mpdf' diff --git a/playbooks/mpdb.yaml b/playbooks/mpdb.yaml index f0423bc..32f97c4 100644 --- a/playbooks/mpdb.yaml +++ b/playbooks/mpdb.yaml @@ -1,5 +1,5 @@ - hosts: all - gather_facts: false + gather_facts: true vars: tasks: - name: Install mpdb on hosts diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index 8a0a9b5..603417b 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -10,9 +10,13 @@ # be disabled and audio files will only be accepted over ipc socket (using # 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" + plugin "proxy" + host {{ hostvars[backendhost]['ansible_facts']['eth1']['ipv4']['address'] }} host "142.93.181.29" port "8888" password "password" diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index ef5a9c3..142ad41 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -1,5 +1,5 @@ - hosts: all - gather_facts: false + gather_facts: true 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 @@ -36,7 +36,8 @@ volume_normalization: no audio_buffer_size: 2048 buffer_before_play: "1%" - + backendhost: "{{ inventory_hostname |replace("f","b") }}" + tasks: - name: Install mpdf on hosts apt: