2020-04-17 23:23:36 +00:00
|
|
|
---
|
|
|
|
- name: Gather facts
|
2021-04-29 12:20:50 +00:00
|
|
|
hosts: k8s_cluster:etcd:calico_rr
|
2020-04-17 23:23:36 +00:00
|
|
|
gather_facts: False
|
2021-08-25 19:01:54 +00:00
|
|
|
tags: always
|
2020-04-17 23:23:36 +00:00
|
|
|
tasks:
|
|
|
|
- name: Gather minimal facts
|
|
|
|
setup:
|
|
|
|
gather_subset: '!all'
|
|
|
|
|
2021-02-16 17:34:58 +00:00
|
|
|
# filter match the following variables:
|
|
|
|
# ansible_default_ipv4
|
|
|
|
# ansible_default_ipv6
|
|
|
|
# ansible_all_ipv4_addresses
|
|
|
|
# ansible_all_ipv6_addresses
|
|
|
|
- name: Gather necessary facts (network)
|
2020-04-17 23:23:36 +00:00
|
|
|
setup:
|
2021-02-16 17:34:58 +00:00
|
|
|
gather_subset: '!all,!min,network'
|
|
|
|
filter: "ansible_*_ipv[46]*"
|
|
|
|
|
|
|
|
# filter match the following variables:
|
|
|
|
# ansible_memtotal_mb
|
|
|
|
# ansible_swaptotal_mb
|
|
|
|
- name: Gather necessary facts (hardware)
|
|
|
|
setup:
|
|
|
|
gather_subset: '!all,!min,hardware'
|
|
|
|
filter: "ansible_*total_mb"
|