Skip to content

Commit f4064f4

Browse files
Merge pull request GoogleCloudPlatform#4708 from annuay-google/annuay/fix-gke-build-failures
Fix gke build failures
2 parents 254da3b + 7e2f377 commit f4064f4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tools/cloud-build/daily-tests/ansible_playbooks/tasks/wait-for-startup-script.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@
1919

2020
- name: Wait for startup script to complete
2121
become: true
22-
ansible.builtin.shell: journalctl -u google-startup-scripts.service -b | grep -oP "startup-script exit status \K\d+"
22+
ansible.builtin.shell: journalctl -u google-startup-scripts.service -b | grep "Started Google Compute Engine Startup Scripts."
2323
register: result
2424
until: result.rc == 0
2525
retries: "{{ (timeout_seconds/5)|int }}"
2626
delay: 5
27-
28-
- name: Fail if startup script exited with a non-zero return code
29-
ansible.builtin.fail:
30-
msg: There was a failure in the startup script
31-
when: result.stdout != "0"

0 commit comments

Comments
 (0)