Improve rabbitmq-clusterer template code format

TrivialFix

Change-Id: I735091c4d044344361e604014f3877b608223204
This commit is contained in:
Duong Ha-Quang 2016-08-19 00:05:18 +07:00
parent bed0f0f8d7
commit d96464e9ee

View File

@ -1,9 +1,11 @@
[ [
{version, 1}, {version, 1},
{nodes, [ {nodes, [
{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %} {% for host in groups['rabbitmq'] %}
{'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}
{%- if not loop.last -%},{%- endif %}
{% endfor %} {% endfor %}
]}, ]},
{gospel, {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}} {gospel,
{node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}}
]. ].