Ah...that makes sense, but unfortunately it still doesn't work for me...
template:
> {% for interface in ansible_interfaces if interface != 'lo' %}
> {{ hostvars[inventory_hostname]['ansible_' + interface]['ipv4.address'] }}
> {{ lookup('dig', hostvars[inventory_hostname]['ansible_' +
> interface]['ipv4.address'] + '/PTR') }}
> {% endfor %}
results of ansible-playbook run:
> FAILED! => {"changed": false, "failed": true, "msg":
> "AnsibleUndefinedVariable: 'dict object' has no attribute 'ipv4.address'"}
Thanks for the quick replies...
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/32ceade7-2004-4ca2-8dcb-644d804bd51e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.