fail when kubeadm init fails

This commit is contained in:
Marc Bihlmaier 2019-01-02 14:52:15 +01:00
parent fc176d80c9
commit 6d47a11de4

View File

@ -8,14 +8,6 @@
--ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }}
{{ kubernetes_kubeadm_init_extra_opts }}
register: kubeadmin_init
failed_when: false
when: not kubernetes_init_stat.stat.exists
- name: Print the init output to screen.
debug:
var: kubeadmin_init.stdout
verbosity: 2
when: not kubernetes_init_stat.stat.exists
- name: Ensure .kube directory exists.