kubespray/roles/kubespray-defaults/tasks/fallback_ips_gather.yml

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