diff --git a/roles/test_verify_email/tasks/main.yml b/roles/test_verify_email/tasks/main.yml index 0c7a244d..93731024 100644 --- a/roles/test_verify_email/tasks/main.yml +++ b/roles/test_verify_email/tasks/main.yml @@ -59,9 +59,9 @@ cmd: | oc logs alertmanager-default-0 -c alertmanager register: cmd_output - failed_when: - - "cmd_output.stdout_lines | length == 0" - - "'receiver=email' not in cmd_outout.stdout" + retries: 18 + delay: 10 + until: "'receiver=email' in cmd_output.stdout" changed_when: false always: