Skip to content

Commit da0f4c6

Browse files
committed
[sushy_emulator] Add retry logic for container image pull
Add retries, delay, and until parameters to the podman_image task to handle temporary network failures when pulling the sushy emulator container image from the registry. Signed-off-by: Vito Castellano <[email protected]>
1 parent 6d21b23 commit da0f4c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roles/sushy_emulator/tasks/create_container.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@
1919
name: podman
2020

2121
- name: Pull Sushy Emulator container image
22+
register: _sushy_emulator_fetch_img
2223
containers.podman.podman_image:
2324
name: "{{ cifmw_sushy_emulator_image }}"
2425
state: present
26+
retries: 3
27+
delay: 5
28+
until: _sushy_emulator_fetch_img is success
2529

2630
- name: Create and start Sushy Emulator container
2731
vars:

0 commit comments

Comments
 (0)