From 6d793c5c96b5720669f5d2eaf5abfda17abf44d2 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 28 Aug 2022 17:49:38 -0500 Subject: [PATCH] fix(ansible): add wait --- roles/k3s/post/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/k3s/post/tasks/main.yml b/roles/k3s/post/tasks/main.yml index 6dacf3051..f07b3bf7b 100644 --- a/roles/k3s/post/tasks/main.yml +++ b/roles/k3s/post/tasks/main.yml @@ -75,11 +75,6 @@ with_items: "{{ groups['master'] }}" run_once: true -# TODO:// if there is a race condition, we'll have to manually wait here -# - name: Wait for all metallb services to come up -# wait_for: -# timeout: 30 - - name: Wait for metallb pods in replicasets command: >- kubectl wait pods -n metallb-system --for condition=Ready \ @@ -112,6 +107,11 @@ with_items: "{{ groups['master'] }}" run_once: true +# TODO:// if there is a race condition, we'll have to manually wait here +- name: Wait for all metallb services to come up + wait_for: + timeout: 30 + - name: Test metallb-system webhook-service endpoint command: >- k3s kubectl -n metallb-system get endpoints webhook-service