Files
dsk-iac/kubespray/roles/kubespray-defaults/tasks/fallback_ips_gather.yml
havelight-ee 4c32a7239d update
2023-05-30 14:44:26 +09:00

12 lines
412 B
YAML

---
# include to workaround mitogen issue
# https://github.com/dw/mitogen/issues/663
- name: "Gather ansible_default_ipv4 from {{ delegate_host_to_gather_facts }}"
setup:
gather_subset: '!all,network'
filter: "ansible_default_ipv4"
delegate_to: "{{ delegate_host_to_gather_facts }}"
connection: "{{ (delegate_host_to_gather_facts == 'localhost') | ternary('local', omit) }}"
delegate_facts: yes