Skip to content

Commit f6986e3

Browse files
committed
Minor fix: Delegating gcloud command to localhost
1 parent 56991d8 commit f6986e3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

tools/cloud-build/daily-tests/ansible_playbooks/tasks/add-instance-labels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,9 @@
5151
loop: "{{ gce_instances_list }}"
5252
loop_control:
5353
label: "{{ item.name }}"
54+
register: update_result
55+
until: update_result.rc == 0
56+
retries: 5
57+
delay: 10
5458
when: gce_instances_list | length > 0
59+
delegate_to: localhost

tools/cloud-build/daily-tests/ansible_playbooks/test-validation/test-preemption.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
AND ({{ instance_id_filter }})
4141
' --project={{ project }} --freshness=4h --format="json"
4242
register: preemption_logs
43+
delegate_to: localhost
44+
retries: 5
45+
delay: 10
46+
until: preemption_logs.rc == 0
4347

4448
- name: Display Instance Names being checked
4549
ansible.builtin.debug:

0 commit comments

Comments
 (0)