Hello,
I'm trying to build a String based on host vars from a group.
I see how to loop thru host in a group
{% for host in groups['app_servers'] %}
{{ hostvars[host]['my_cool_var'] }}
{% endfor %}
But not how to flatten this into a string to get :
my_cool_val1, my_cool_val2,...,my_cool_vallast
Thanks for you help
Alain
--
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/8d20763f-d6c7-4383-b11c-ce06e5391999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.