mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 23:07:47 -02:30
Gather just the necessary facts (#5955)
* Gather just the necessary facts * Move fact gathering to separate playbook.
This commit is contained in:
19
facts.yml
Normal file
19
facts.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Gather facts
|
||||
hosts: k8s-cluster:etcd:calico-rr
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- name: Gather minimal facts
|
||||
setup:
|
||||
gather_subset: '!all'
|
||||
|
||||
- name: Gather necessary facts
|
||||
setup:
|
||||
gather_subset: '!all,!min,network,hardware'
|
||||
filter: "{{ item }}"
|
||||
loop:
|
||||
- ansible_distribution_major_version
|
||||
- ansible_default_ipv4
|
||||
- ansible_all_ipv4_addresses
|
||||
- ansible_memtotal_mb
|
||||
- ansible_swaptotal_mb
|
||||
Reference in New Issue
Block a user