Try: with_items: variableName.split()
On Tuesday, February 17, 2015, Mario Vázquez <[email protected]> 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] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[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/CAD8N0v8jy_A%2BO480Y%2BPdrq0TMrodUZNvNAf3dNGgWv6G7crK1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
