diff --git a/tasks/control-plane-setup.yml b/tasks/control-plane-setup.yml index 347e5cc..f092cff 100644 --- a/tasks/control-plane-setup.yml +++ b/tasks/control-plane-setup.yml @@ -24,8 +24,23 @@ --ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }} {{ kubernetes_kubeadm_init_extra_opts }} register: kubeadmin_init + failed_when: false # TODO REMOVE when: (not kubernetes_init_stat.stat.exists) and (kubernetes_ignore_preflight_errors is defined) +# TODO REMOVE +- name: Print kubeadm init output + debug: var=kubeadmin_init.stdout + +# TODO REMOVE +- name: Get kubelet status + command: journalctl --no-pager -xeu kubelet + register: journalctl + changed_when: false + +# TODO REMOVE +- name: Print kubelet status + debug: var=journalctl.stdout + - name: Print the init output to screen. debug: var: kubeadmin_init.stdout