Increase the idx counter
Fix the idx counter to increase too, or you will end up with two same indexes.
This commit is contained in:
@ -27,6 +27,7 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi
|
|||||||
IP.{{ idx }} = {{ kube_apiserver_ip }}
|
IP.{{ idx }} = {{ kube_apiserver_ip }}
|
||||||
{% if loadbalancer_apiserver is defined %}
|
{% if loadbalancer_apiserver is defined %}
|
||||||
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }}
|
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }}
|
||||||
|
{% set idx = idx + 1 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
IP.{{ idx + 1 }} = 127.0.0.1
|
IP.{{ idx + 1 }} = 127.0.0.1
|
||||||
{% if supplementary_addresses_in_ssl_keys is defined %}
|
{% if supplementary_addresses_in_ssl_keys is defined %}
|
||||||
|
Reference in New Issue
Block a user