Przeglądaj źródła

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

master
Erin Sims 2 lat temu
rodzic
commit
37c69e19f0
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +1
    -1
      playbooks/mpdf.conf.j2
  2. +3
    -3
      playbooks/mpdf.yaml

+ 1
- 1
playbooks/mpdf.conf.j2 Wyświetl plik

@@ -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"


+ 3
- 3
playbooks/mpdf.yaml Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz