Browse Source

finally got the ansible droplet info to work right its in conf.j2 now

master
Erin Sims 2 years ago
parent
commit
37c69e19f0
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      playbooks/mpdf.conf.j2
  2. +3
    -3
      playbooks/mpdf.yaml

+ 1
- 1
playbooks/mpdf.conf.j2 View File

@@ -16,7 +16,7 @@ music_directory "nfs://example.com/path/to/your/music/"


database { database {
plugin "proxy" plugin "proxy"
host ""
host "{{ droplets.data[0].networks.v4[0].ip_address }}"
# host "142.93.181.29" # host "142.93.181.29"
port "8888" port "8888"
password "password" password "password"


+ 3
- 3
playbooks/mpdf.yaml View File

@@ -42,9 +42,9 @@
oauth_token: "{{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }}" oauth_token: "{{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }}"
name: mpdb1 name: mpdb1
register: droplets 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 - name: Install mpdf on hosts
apt: apt:
name: mpd name: mpd


Loading…
Cancel
Save