|
@@ -100,10 +100,20 @@
|
|
|
register: crictl_logs_output
|
|
|
with_items: "{{ crictl_ps_output.stdout_lines }}"
|
|
|
ignore_errors: true
|
|
|
+ - name: Get crio logs
|
|
|
+ command: journalctl --no-pager -u cri-o
|
|
|
+ register: crio_logs
|
|
|
+ ignore_errors: true
|
|
|
+ - name: Get kubelet logs
|
|
|
+ command: journalctl --no-pager -u kubelet
|
|
|
+ register: kubelet_logs
|
|
|
+ ignore_errors: tru
|
|
|
- debug:
|
|
|
var: crictl_logs_output
|
|
|
- debug:
|
|
|
- msg: "{{ bootkube_logs.stdout_lines }}"
|
|
|
+ msg: "{{ kubelet_logs.stdout_lines }}"
|
|
|
+ - debug:
|
|
|
+ msg: "{{ crio_logs.stdout_lines }}"
|
|
|
- fail:
|
|
|
msg: Node failed to become Ready
|
|
|
|