fix digitalocean by updating ipv4 address json path

the current api format is documented at https://docs.digitalocean.com/reference/api/api-reference/#operation/get_droplet

if it changes again one can just update the path with some profound observations
This commit is contained in:
Will Song 2022-01-05 12:15:33 -05:00
parent 7203f33f2e
commit fad49117dc
2 changed files with 2 additions and 4 deletions

View file

@ -6,9 +6,7 @@
# User names with leading 0's or containing only numbers should be escaped in double quotes, e.g. "000dan" or "123".
# Email addresses are not allowed.
users:
- phone
- laptop
- desktop
- test
### Review these options BEFORE you run Algo, as they are very difficult/impossible to change after the server is deployed.

View file

@ -40,7 +40,7 @@
when: alternative_ingress_ip
- set_fact:
cloud_instance_ip: "{{ digital_ocean_droplet.data.ip_address }}"
cloud_instance_ip: "{{ digital_ocean_droplet.data.droplet.networks.v4[0].ip_address }}"
ansible_ssh_user: algo
ansible_ssh_port: "{{ ssh_port }}"
cloudinit: true