On 29. okt. 2016 12:42, [email protected] wrote:
Hi

Still have an error

*failed: [NRT001] (item={u'model': u'NRT4451', u'hostname': u'NRT001'}) =>
{"failed": true, "item": {"hostname": "NRT001", "model": "NRT4451"}, "msg":
"AnsibleUndefinedVariable: 'dict object' has no attribute u'NRT4451'"}*

Is your variable definition in the roles vars/main.yml, if so this should work.

interface {{ vars[item.model]['wan'] }}

--
Kai Stian Olstad

--
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/2dfb6d02-136b-1b63-99bf-83ef0ff64e00%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to