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

@ -33,15 +33,18 @@
- { role: kubespray-defaults }
- { role: remove-node/pre-remove, tags: pre-remove }
- name: Gather facts
import_playbook: facts.yml
- hosts: "{{ node | default('kube-node') }}"
gather_facts: yes
gather_facts: no
roles:
- { role: kubespray-defaults }
- { role: reset, tags: reset, when: reset_nodes|default(True) }
# Currently cannot remove first master or etcd
- hosts: "{{ node | default('kube-master[1:]:etcd[:1]') }}"
gather_facts: yes
gather_facts: no
roles:
- { role: kubespray-defaults }
- { role: remove-node/post-remove, tags: post-remove }