]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw/nfs: fix section duplication 2104/head
authorSébastien Han <seb@redhat.com>
Wed, 25 Oct 2017 13:45:37 +0000 (15:45 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 25 Oct 2017 13:45:37 +0000 (15:45 +0200)
Once and for all, hopefully...

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-config/templates/ceph.conf.j2

index 23e0b712b88c7cd32e57ebe6620c0f54c7b9b572..ef90465354b9bc3c5ec37b905471d07ddca8c254 100644 (file)
@@ -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 %}