mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
refact ip stack (#11953)
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
etcd_servers: >-
|
||||
{% for host in groups['etcd'] -%}
|
||||
{% if not loop.last -%}
|
||||
https://{{ hostvars[host].access_ip | default(hostvars[host].ip | default(hostvars[host].ansible_default_ipv4['address'])) }}:2379,
|
||||
https://{{ hostvars[host]['main_access_ip'] | ansible.utils.ipwrap }}:2379,
|
||||
{%- endif -%}
|
||||
{%- if loop.last -%}
|
||||
https://{{ hostvars[host].access_ip | default(hostvars[host].ip | default(hostvars[host].ansible_default_ipv4['address'])) }}:2379
|
||||
https://{{ hostvars[host]['main_access_ip'] | ansible.utils.ipwrap }}:2379
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user