Browse Source

Make main_ip cacheable in facts (#12243)

pull/12254/head
Shuu 4 months ago
committed by GitHub
parent
commit
a87b86c6d3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/network_facts/tasks/main.yaml

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

Loading…
Cancel
Save