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:
Andreas Krüger
2018-01-30 21:48:13 +01:00
committed by GitHub
parent 6f36faa4f9
commit 088d36da09

View File

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