Make main_ip cacheable in facts (#12601)

Co-authored-by: fox0430 <shuu.n@protonmail.com>
This commit is contained in:
k8s-infra-cherrypick-robot
2025-10-09 02:23:03 -07:00
committed by GitHub
parent 2336d54088
commit 4471512232

View File

@@ -41,6 +41,7 @@
- name: Set main ip(ip based on ipv4_stack/ipv6_stack options).
set_fact:
cacheable: true
main_ip: "{{ (ip | default(fallback_ip)) if ipv4_stack else (ip6 | default(fallback_ip6)) }}"
- name: Set main access ips(mixed ips for dualstack).