I try to fill the ansible (jinja) template with a comma-separated list of all hosts in the group 'lan-msqservers'.
<add key="MessageBus:LanConnectionString" value="host=host1.fqdn,host2.fqdn,host3.fqdn;virtualHost=/;username=user;password=passwd;timeout=60" />
I tried:
host='{{ groups[lan-msqservers][0] }}','{{ groups[lan-msqservers][1]}}';
host=groups['lan-msqservers'][0]],groups['lan-msqservers'][1]];
Without success.
can anyone help?