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/e9a305e75dd7983f9aea93296923b602%40olstad.com.
For more options, visit https://groups.google.com/d/optout.