AWESOME!!!!!

The last line worked perfectly. Many many thanks Kai! 

fredag den 20. april 2018 kl. 15.32.04 UTC+2 skrev Kai Stian Olstad:
>
> On 20.04.2018 15:22, Nico wrote: 
> > Result: 
> > 
> > TASK [debug] 
> > 
> ********************************************************************************************************************************************************
>  
>
> > ok: [localhost] => { 
> >     "ip_list": [ 
> >         [ 
> >             "10.1.1.7" 
> >         ], 
> >         [ 
> >             "10.1.1.4" 
> >         ], 
> >         [ 
> >             "10.1.1.5" 
> >         ] 
> >     ] 
> > } 
>
> You have a list in a list, you need to fix your set_fact ip_list to just 
> create a list. 
>
> If that is not an option this will also work for foo at least. 
>
>    foo: '{% for i in ip %}{{ i.0 }}:8080{% if not loop.last %},{% endif 
> %}{% endfor %}' 
>
>
> -- 
> 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/78e60abb-5fdc-4bf7-a8b3-196f15c17864%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to