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

@@ -19,10 +19,11 @@
- { role: kubespray-defaults}
- { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
- hosts: all
gather_facts: true
- name: Gather facts
import_playbook: facts.yml
- hosts: etcd:k8s-cluster:calico-rr
gather_facts: False
vars_prompt:
name: "reset_confirmation"
prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."