k8s: check for nodes to be ready in playbooks

We don't need to check if the cluster is ready in CI, it should
happen inside the library.

Change-Id: I6d600d49bde919852a8161b5409ad8ea9efa0147
This commit is contained in:
Mohammed Naser 2019-08-21 19:37:12 -04:00
parent e7e6cd11ba
commit 0e75d72e3e
2 changed files with 8 additions and 7 deletions

View File

@ -169,3 +169,11 @@
changed_when: false
shell: |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
- name: Wait for all nodes to get ready
run_once: true
shell: kubectl get nodes
register: _kubectl_get_nodes
retries: 30
delay: 3
until: '"NotReady" not in _kubectl_get_nodes.stdout'

View File

@ -23,13 +23,6 @@
- hosts: masters[0]
tasks:
- name: Wait for all nodes to get ready
shell: kubectl get nodes
register: _kubectl_get_nodes
retries: 30
delay: 3
until: '"NotReady" not in _kubectl_get_nodes.stdout'
- name: Download sonobuoy
become: true
unarchive: