From 37c69e19f052ca4426dc5427f10f9b52722dc563 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Mon, 12 Sep 2022 19:34:29 -0400 Subject: [PATCH] finally got the ansible droplet info to work right its in conf.j2 now --- playbooks/mpdf.conf.j2 | 2 +- playbooks/mpdf.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/mpdf.conf.j2 b/playbooks/mpdf.conf.j2 index e7ec0a5..8292b8d 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.data[0].networks.v4[0].ip_address }}" # host "142.93.181.29" port "8888" password "password" diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index b4864e1..8395741 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -42,9 +42,9 @@ oauth_token: "{{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }}" name: mpdb1 register: droplets - - name: Print return information from the previous task - ansible.builtin.debug: - msg : "{{ droplets.data[0].networks.v4[0].ip_address }}" +# - name: Print return information from the previous task + #ansible.builtin.debug: + # msg : "{{ droplets.data[0].networks.v4[0].ip_address }}" - name: Install mpdf on hosts apt: name: mpd