Hello Matt, It is working with .split().
Thank you very much. El martes, 17 de febrero de 2015, 14:32:27 (UTC+1), Matt Martz escribió: > > Try: > > with_items: variableName.split() > > On Tuesday, February 17, 2015, Mario Vázquez <[email protected] > <javascript:>> wrote: > >> Hello all, >> >> I need help with a loop iterating through user input data. I have a >> prompt variable in my playbook that is filled with usernames. The value its >> something like "test1 test2 test3". >> >> I need to iterate through this values within "with_items" iterator. >> >> If I use with_items: variableName the loop iterates only once (the value >> was test1 test2 test3). >> >> Any ideas? >> >> Thank you in advance. >> >> -- >> 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/2116213a-01dc-465f-800d-791a45c5e351%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/2116213a-01dc-465f-800d-791a45c5e351%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Matt Martz > @sivel > sivel.net > > -- 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/18035d36-7625-487a-bce3-5eeaa4a7088e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
