2020-04-16 14:22:47 +00:00
|
|
|
---
|
|
|
|
# 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 }}"
|
2020-06-25 15:14:38 +00:00
|
|
|
connection: "{{ (delegate_host_to_gather_facts == 'localhost') | ternary('local', omit) }}"
|
2020-04-16 14:22:47 +00:00
|
|
|
delegate_facts: yes
|