7829aa27b3
erlang parser, cant parse hostname with minus symbol, it returns: Ignoring external configuration due to error: {1,erl_parse,"bad term"} Adding single quotes fix this issue. Co-Authored-By: weiyu <weiyu@unitedstack.com> Closes-Bug: #1540234 Change-Id: I80e0789aa31febd552a851e6dc3a835d89c0e9d1
10 lines
272 B
Django/Jinja
10 lines
272 B
Django/Jinja
[
|
|
{version, 1},
|
|
{nodes, [
|
|
{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
]},
|
|
{gospel, {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}}
|
|
].
|