diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index 3401274..d0172c2 100644 --- a/playbooks/mpdf.conf.j2 +++ b/playbooks/mpdf.conf.j2 @@ -16,7 +16,7 @@ music_directory "nfs://example.com/path/to/your/music/" database { plugin "proxy" - host "" + host " {{ droplets.id }}" # host "142.93.181.29" port "8888" password "password" diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 9538798..fd87c19 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -40,7 +40,8 @@ - name: Gather information about a specific droplet by name community.digitalocean.digital_ocean_droplet_info: oauth_token: "{{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }}" - name: "mpdb1" + name: mpdf1 + register: droplets - name: Install mpdf on hosts apt: name: mpd