mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Make main_ip cacheable in facts (#12243)
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
- name: Set main ip(ip based on ipv4_stack/ipv6_stack options).
|
- name: Set main ip(ip based on ipv4_stack/ipv6_stack options).
|
||||||
set_fact:
|
set_fact:
|
||||||
|
cacheable: true
|
||||||
main_ip: "{{ (ip | default(fallback_ip)) if ipv4_stack else (ip6 | default(fallback_ip6)) }}"
|
main_ip: "{{ (ip | default(fallback_ip)) if ipv4_stack else (ip6 | default(fallback_ip6)) }}"
|
||||||
|
|
||||||
- name: Set main access ips(mixed ips for dualstack).
|
- name: Set main access ips(mixed ips for dualstack).
|
||||||
|
|||||||
Reference in New Issue
Block a user