You can use a filter to concatenate a string from a list.  For example,
"{{ my_list | join(' ') }}"


You can read more about filters here 
<https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#id8>
.

Theo

On Friday, November 9, 2018 at 3:40:48 AM UTC-5, Fatima Elfakih wrote:
>
> hello
> I want to add a string for all item in my list without using "with_item".
> any proposition?
> Thx
>
>

-- 
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/387da662-e3ee-4776-8f2c-80ee3b661079%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to