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