missed a dot ['ipv4.address'] => ['ipv4']['address'] On Fri, Jan 29, 2016 at 3:30 PM, Dayton Jones <[email protected]> wrote: > 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.
-- Brian Coca -- 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/CAJ5XC8mJ7Uk1ZzfR90YRfNCe9Q8d9qHMEuCmTzM%2Bn8DKfjmAOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
