github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/ansible/roles/node-smoke-test/tasks/main.yaml (about) 1 --- 2 - name: wait for node '{{ new_node|lower }}' to register with the API server and become Ready 3 command: kubectl --kubeconfig {{ kubernetes_kubeconfig.kubectl }} get nodes --selector kubernetes.io/hostname={{ new_node|lower }} 4 register: nodeStatus 5 until: nodeStatus|success and "Ready" in nodeStatus.stdout 6 retries: 20 7 delay: 6 8 9 - name: failed getting the status of the node '{{ new_node|lower }}' 10 fail: 11 msg: | 12 An error occurred trying to get the status of the node 13 14 {{ nodeStatus.stderr }} 15 when: nodeStatus|failure 16 17 - name: fail if node '{{ new_node|lower }}' is not Ready 18 fail: 19 msg: | 20 Node is not in the Ready state 21 22 {{ nodeStatus.stdout }} 23 when: nodeStatus|success and "Ready" not in nodeStatus.stdout