From 4471512232f04527e4f5d02ff2fa6587d8db8f81 Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Thu, 9 Oct 2025 02:23:03 -0700 Subject: [PATCH] Make main_ip cacheable in facts (#12601) Co-authored-by: fox0430 --- roles/network_facts/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/network_facts/tasks/main.yaml b/roles/network_facts/tasks/main.yaml index eca657706..829b509f7 100644 --- a/roles/network_facts/tasks/main.yaml +++ b/roles/network_facts/tasks/main.yaml @@ -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).