From 155a437fa99dcd36feb8b95d29dc69603c8c7f39 Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 27 Oct 2023 21:15:42 +0200 Subject: [PATCH] upt playbook --- playbooks/00_initial_adjustments.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbooks/00_initial_adjustments.yml b/playbooks/00_initial_adjustments.yml index 742dcaa..8ccb4da 100644 --- a/playbooks/00_initial_adjustments.yml +++ b/playbooks/00_initial_adjustments.yml @@ -5,6 +5,12 @@ vars: iface: "eth0" tasks: + - name: wait for pods to come up + shell: kubectl get pods -o json -n cattle-system + register: kubectl_get_pods + until: kubectl_get_pods.stdout|from_json|json_query('items[*].status.phase')|unique == ["Running"] + retries: 20 + delay: 30 - name: Reconfigure /root/.bashrc ansible.builtin.lineinfile: path: /root/.bashrc