From 8ede7fd1b224605afded505ba37e6e37eb45c357 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Sat, 23 Apr 2022 12:22:14 +0200 Subject: [PATCH] Debug: check pods --- playbook.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index 4908199..35a176a 100644 --- a/playbook.yml +++ b/playbook.yml @@ -141,6 +141,15 @@ src: kube-vip.j2 dest: /var/lib/rancher/k3s/server/manifests/kube-vip.yml + - name: Initial node -- Wait for ??? + # ansible.builtin.pause: + # seconds: 300 + ansible.builtin.shell: + cmd: kubectl get pod -A + with_sequence: + count: 5 + delay: 10 + delegate_to: "{{ ansible_play_hosts[0] }}" run_once: true @@ -168,7 +177,7 @@ - name: Debug systemd unit ansible.builtin.shell: - cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service -b --no-pager + cmd: systemctl status k3s -l --no-pager; journalctl -u k3s.service --no-pager register: debug - ansible.builtin.debug: var: debug.stdout