From 939171922ef40366eb48c7140707cb4524a689ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 25 Oct 2017 15:45:37 +0200 Subject: [PATCH] rgw/nfs: fix section duplication MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Once and for all, hopefully... Signed-off-by: Sébastien Han (cherry picked from commit 8670b45ef2cfcf35bac5d7f83b93099bfa1d9f9e) Signed-off-by: Sébastien Han --- roles/ceph-config/templates/ceph.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-config/templates/ceph.conf.j2 b/roles/ceph-config/templates/ceph.conf.j2 index 23e0b712b..ef9046535 100644 --- a/roles/ceph-config/templates/ceph.conf.j2 +++ b/roles/ceph-config/templates/ceph.conf.j2 @@ -200,7 +200,7 @@ rgw frontends = civetweb port=[{{ ['ansible_' + radosgw_interface][ip_version][0 {% if groups[nfs_group_name] is defined %} {% if nfs_group_name in group_names %} -{% if inventory_hostname in groups.get(nfs_group_name, []) %} +{% if inventory_hostname in groups.get(nfs_group_name, []) and inventory_hostname not in groups.get(rgw_group_name, []) %} {% for host in groups[nfs_group_name] %} {% if nfs_obj_gw %} {% if hostvars[host]['ansible_hostname'] is defined %} -- 2.39.5