summaryrefslogtreecommitdiffstats
path: root/roles/gluster
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-02-07 22:03:46 +0000
committerRalph Bean <rbean@redhat.com>2014-02-07 22:03:46 +0000
commit0b3078763100bb5ef759ce66fb311ad6d0ea0225 (patch)
treed47bfe2e96272caf198ac6210b2ba81b91cfd9fa /roles/gluster
parent75799a5f32115c698543493f1bdf6ff19f53491f (diff)
downloadansible-0b3078763100bb5ef759ce66fb311ad6d0ea0225.tar.gz
ansible-0b3078763100bb5ef759ce66fb311ad6d0ea0225.tar.xz
ansible-0b3078763100bb5ef759ce66fb311ad6d0ea0225.zip
Well that didn't work.
Diffstat (limited to 'roles/gluster')
-rw-r--r--roles/gluster/client/templates/client.config4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/gluster/client/templates/client.config b/roles/gluster/client/templates/client.config
index 430964208..c42ec3646 100644
--- a/roles/gluster/client/templates/client.config
+++ b/roles/gluster/client/templates/client.config
@@ -17,8 +17,8 @@ end-volume
volume mirror-0
type cluster/replicate
subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %}
- {% if servers.index(hostvars[inventory_hostname]['ansible_ssh_host']) %}
- option read-subvolume vol-{{ servers.index(hostvars[inventory_hostname]['ansible_ssh_host'])}}
+ {% if servers.index(inventory_hostname) %}
+ option read-subvolume vol-{{ servers.index(inventory_hostname)}}
{% endif %}
end-volume