How can I iterate through user input data with "with_items" loop?

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.

Try:

with_items: variableName.split()

Hello Matt,

It is working with .split().

Thank you very much.