Gather just the necessary facts (#5955)

* Gather just the necessary facts

* Move fact gathering to separate playbook.
This commit is contained in:
Lovro Seder
2020-04-18 01:23:36 +02:00
committed by GitHub
parent 7930f6fa0a
commit 27a268df33
7 changed files with 63 additions and 4 deletions

View File

@@ -41,8 +41,12 @@
- { role: kubespray-defaults }
- { role: bootstrap-os, tags: bootstrap-os}
- name: Gather facts
import_playbook: facts.yml
- name: Generate the etcd certificates beforehand
hosts: etcd
gather_facts: False
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
roles:
- { role: kubespray-defaults }
@@ -58,6 +62,7 @@
- name: Target only workers to get kubelet installed and checking in on any new nodes
hosts: kube-node
gather_facts: False
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
roles:
- { role: kubespray-defaults }