Result: TASK [debug] ******************************************************************************************************************************************************** ok: [localhost] => { "ip_list": [ [ "10.1.1.7" ], [ "10.1.1.4" ], [ "10.1.1.5" ] ] }
fredag den 20. april 2018 kl. 15.14.18 UTC+2 skrev Kai Stian Olstad: > > On 20.04.2018 13:03, Nico wrote: > > Thank you so much. I would never have figured that out. The result is > > however still a bit off: > > > > TASK [debug] > > > ************************************************************************************************************************ > > > > ok: [localhost] => { > > "foo": "[u'10.1.1.7']:8080,[u'10.1.1.4']:8080,[u'10.1.1.5']:8080" > > } > > There is noting wrong with the output, but with the input. > Looks like you ip_list is a list in a list or does contain more that > just the IPs. > > What does > > - debug: var=ip_list > > say? > > > -- > 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/7909923c-3163-4580-8ad5-a09e8a559c11%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.