diff --git a/roles/k3s/post/tasks/main.yml b/roles/k3s/post/tasks/main.yml index 6dacf30..f07b3bf 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