Browse Source

Add retries on image pull ahead of updating

We are seeing occasional failures to pull due to intermittent registry
errors downstream. A retry should help to avoid the whole update
failing because of this.

Change-Id: Ib9415e46a52cc6ad6459ec3f170d7e23aa9aca03
changes/40/735140/1
Julie Pichon 1 month ago
parent
commit
4130a447d4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tasks/yum_update_buildah.yml

+ 3
- 0
tasks/yum_update_buildah.yml View File

@@ -6,6 +6,9 @@
- name: From image {{ source_image }}
command: buildah from {{ source_image }}
register: from_image_cmd
retries: 3
delay: 5
until: from_image_cmd is succeeded

- name: Set from_image
set_fact:


Loading…
Cancel
Save