Well that didn't work.

This commit is contained in:
Ralph Bean 2014-02-07 22:03:46 +00:00
parent 75799a5f32
commit 0b30787631

View file

@ -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