diff --git a/playbooks/roles/os_temps/tasks/build_new_app.yml b/playbooks/roles/os_temps/tasks/build_new_app.yml index 77055e24..8b79f8d5 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 or oc_build_result.stdout.find(" New ") == -1) + until: oc_build_result.stdout.find(" Running ") != -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 5de84191..2c6f7293 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 or oc_build_result.stdout.find(" New ") == -1) + until: oc_build_result.stdout.find(" Running ") != -1 retries: 6 delay: 10 ignore_errors: yes