[release-2.27] Make fallback_ip cacheable in facts (#12182)

* Make fallback_ip cacheable in facts

* Move cacheable property after fallback_ip variable

Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
Ali Afsharzadeh
2025-05-03 08:33:55 +03:30
committed by GitHub
parent bf68231a5a
commit 6a67d28fab

View File

@@ -16,6 +16,7 @@
- name: Set fallback_ip
set_fact:
fallback_ip: "{{ ansible_default_ipv4.address | d('127.0.0.1') }}"
cacheable: true
when: fallback_ip is not defined
- name: Set no_proxy