From 84540a0632ed827409cb957f881c7911e14b43c8 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Thu, 4 Feb 2016 11:47:28 +0000 Subject: [PATCH] Revert "fix miss rabbitmq config when hostname include special character" This change breaks ubuntu This reverts commit 04992a3de0a181a658cae2561a3a1adce313bbf1. Change-Id: I5e38d4c4a37ee90603ad04ab4b9d03298b6b2eb2 --- ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 b/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 index a50ce84eae..fe199394a0 100644 --- a/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 +++ b/ansible/roles/rabbitmq/templates/rabbitmq_clusterer.config.j2 @@ -1,9 +1,9 @@ [ {version, 1}, {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 %} ]}, - {gospel, {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}} + {gospel, {node, rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}}} ].