Make main_ip cacheable in facts (#12243)

This commit is contained in:
Shuu
2025-06-05 17:58:38 +09:00
committed by GitHub
parent d287420e8e
commit a87b86c6d3

View File

@@ -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).