On 23.04.2019 10:20, Saranya Nagaraj wrote:
Hi Brian,
Thankyou for the response.
This generates a list of numbers.

But I want a string like this "0,1,2,3"

I kind of tried python join n didn't work.

use the join filter

{{range(0, groups['Test']|length + 1)|list | join(',') }}

--
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/794b2d8e9863562062e4f826b58cfb36%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to