diff --git a/playbooks/roles/os_temps/tasks/build_new_app.yml b/playbooks/roles/os_temps/tasks/build_new_app.yml index e09ea74f..77055e24 100644 --- a/playbooks/roles/os_temps/tasks/build_new_app.yml +++ b/playbooks/roles/os_temps/tasks/build_new_app.yml @@ -9,7 +9,7 @@ - name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued" shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'" register: oc_build_result - until: oc_build_result.stdout.find(" Pending ") == -1 + until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1) retries: 6 delay: 10 ignore_errors: yes diff --git a/playbooks/roles/os_temps/tasks/setup_os_templates.yml b/playbooks/roles/os_temps/tasks/setup_os_templates.yml index b085499d..5de84191 100644 --- a/playbooks/roles/os_temps/tasks/setup_os_templates.yml +++ b/playbooks/roles/os_temps/tasks/setup_os_templates.yml @@ -108,7 +108,7 @@ - name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued :: FINAL ATTEMPT" shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'" register: oc_build_result - until: oc_build_result.stdout.find(" Pending ") == -1 + until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1) retries: 6 delay: 10 ignore_errors: yes