diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index 4baff05..87e2b55 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -98,11 +98,11 @@ - name: Delete CreateContainerConfigError pods command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" register: error_pods - changed_when: error_pods.stdout_lines | length > 1 + changed_when: error_pods.stdout_lines | length > 0 retries: 5 delay: 120 - until: error_pods.stdout_lines | length > 1 + until: error_pods.stdout_lines | length == 0 - fail: msg: "Error waiting for pods to be ready" - when: error_pods.stdout_lines | length > 1 + when: error_pods.stdout_lines | length > 0