diff --git a/roles/gluster/client/templates/client.config b/roles/gluster/client/templates/client.config index b7cac8df95..15a0aaa817 100644 --- a/roles/gluster/client/templates/client.config +++ b/roles/gluster/client/templates/client.config @@ -17,10 +17,9 @@ end-volume volume mirror-0 type cluster/replicate subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %} - {% if servers.index(inventory_hostname) %} - option read-subvolume vol-{{ servers.index(inventory_hostname)}} - {% endif %} + option read-subvolume vol-{{ servers.index(inventory_hostname)}}{% endif %} + end-volume volume writebehind