Make main_access_ip cacheable in facts (#12020)

Signed-off-by: ekko <lihai.tu@daocloud.io>
This commit is contained in:
Ekko
2025-03-06 15:51:46 +08:00
committed by GitHub
parent 8f4b7f9f5d
commit 6d4714b66e

View File

@@ -31,6 +31,7 @@
- name: Set main access ip(access_ip based on ipv4_stack/ipv6_stack options).
set_fact:
cacheable: true
main_access_ip: >-
{%- if ipv4_stack -%}
{{ access_ip | default(ip | default(fallback_ip)) }}