# File managed by Netbox / AWX 127.0.0.1 localhost.localdomain localhost # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 103.51.69.51 scratchy.2000cn.com.au scratchy 2402:1180:0:2::51 scratchy.2000cn.com.au scratchy {% for myip in results['json']['results'] if myip.dns_name != "" %} {{ myip.address | ansible.utils.ipaddr('address') }} {{ myip.dns_name }} {{ myip.dns_name | split('.') | first }} {% endfor %}