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