We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 254da3b + 7e2f377 commit f4064f4Copy full SHA for f4064f4
1 file changed
tools/cloud-build/daily-tests/ansible_playbooks/tasks/wait-for-startup-script.yml
@@ -19,13 +19,8 @@
19
20
- name: Wait for startup script to complete
21
become: true
22
- ansible.builtin.shell: journalctl -u google-startup-scripts.service -b | grep -oP "startup-script exit status \K\d+"
+ ansible.builtin.shell: journalctl -u google-startup-scripts.service -b | grep "Started Google Compute Engine Startup Scripts."
23
register: result
24
until: result.rc == 0
25
retries: "{{ (timeout_seconds/5)|int }}"
26
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