Merge "Improve rabbitmq-clusterer template code format"
This commit is contained in:
commit
d44055fbff
@ -1,9 +1,11 @@
|
||||
[
|
||||
{version, 1},
|
||||
{nodes, [
|
||||
{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% 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'] }}'}}
|
||||
{gospel,
|
||||
{node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}}
|
||||
].
|
||||
|
Loading…
x
Reference in New Issue
Block a user