On Friday, 20 April 2018 16:41:25 UTC+3, Kai Stian Olstad wrote:
>
> On 20.04.2018 15:29, Vlad wrote: 
> > On Friday, 20 April 2018 16:20:58 UTC+3, Kai Stian Olstad wrote: 
> >> 
> >> On 20.04.2018 13:53, Ciobancai Vlad wrote: 
> >> > {% for key, value in {{ item.iteritems() }} %} 
> >> >    {{ key }}= {{ value }} 
> >> > {% endfor %} 
> >> 
> >> You are already in jinja template mode between {% %} so you can't use 
> >> {{ 
> >> }} there. 
> >> 
> >> {% for key, value in item.iteritems() %} 
> >> 
> >> 
> > 
> > 
> > I'm receiving the folllowing error "msg": "AnsibleUndefinedVariable: 
> > 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 
> > 'iteritems'"} 
>
> I didn't look at what you where trying to do I just saw the syntax 
> error. 
>
> But I see what you are trying to do, I'm not sure but maybe this work 
>
> {% for key, value in vars[item].iteritems() %} 
>
>
> -- 
> Kai Stian Olstad 
>


Works, thank you for your help. 

-- 
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/ce1d5d61-5307-4bc9-b289-7e2ac9e52a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to