{% set members = groups['masters'] | union(groups['new_masters'] | default([])) | map('extract', hostvars, 'ands_hostname_storage') | list %}
{% set vips = ands_ipfailover_vips | default([]) %}
{% set n_vips = vips | length %}
{% if n_vips > 0 %}
{%    set nodes = members[0:n_vips] %}
HA_NAME="openshift_nfs"
#HA_VOL_SERVER="{{ hostvars[groups['masters'][0]]['ands_hostname_storage'] }}"
HA_CLUSTER_NODES="{{ nodes | join(',') }}"
{%   for node in nodes %}
VIP_{{ node }}="{{ vips[loop.index - 1] }}"
{%   endfor %}
{% endif %}
