Did you see my answer? Formatting is wrong.

fredag den 20. april 2018 kl. 13.03.03 UTC+2 skrev Kai Stian Olstad:
>
> On 20.04.2018 13:00, Kai Stian Olstad wrote: 
> > On 20.04.2018 12:33, Nico wrote: 
> >> I need to create a loop that puts the list into a string. 
> >>   - set_fact: 
> >>       foo: "{{ item }}:8080" 
> >>     with_items: "{{ ip_list }}" 
> >> 
> >> Does anybody know how to do this? 
> > 
> >   - set_fact: 
> >       foo: '{% for i in ip %}{{ i }}:8080{% if not loop.last %},{% 
> > endif %}{% endfor %}' 
>
> It should be {% for i in ip_list %} 
>
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f5d48501-6a03-417d-9866-5b58e94b167a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to