Merge pull request #36 from rdxmb/fail-when-init-failed

fail when kubeadm init fails
This commit is contained in:
Jeff Geerling 2020-03-18 20:32:13 -05:00 committed by GitHub
commit 65b8c76dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@
--ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }} --ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }}
{{ kubernetes_kubeadm_init_extra_opts }} {{ kubernetes_kubeadm_init_extra_opts }}
register: kubeadmin_init register: kubeadmin_init
failed_when: false
when: not kubernetes_init_stat.stat.exists when: not kubernetes_init_stat.stat.exists
- name: Print the init output to screen. - name: Print the init output to screen.