How to obtain the IPv6 address of a droplet?

April 9, 2017 2k views
Ansible API IPv6 Ubuntu 16.04

After spawning a new droplet on DO with Ansible, it’s trivially easy to get the IPv4 address, however I can’t find an easy way to do the same to get the public IPv6 address.

Is there a way to do that?

2 Answers

Found it:

"{{ my_droplet.droplet.networks.v6[0].ip_address }}"
Have another answer? Share your knowledge.