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:
parent
6f36faa4f9
commit
088d36da09
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi
|
|||
IP.{{ idx }} = {{ kube_apiserver_ip }}
|
||||
{% if loadbalancer_apiserver is defined %}
|
||||
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }}
|
||||
{% set idx = idx + 1 %}
|
||||
{% endif %}
|
||||
IP.{{ idx + 1 }} = 127.0.0.1
|
||||
{% if supplementary_addresses_in_ssl_keys is defined %}
|
||||
|
|
Loading…
Reference in a new issue