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
This commit is contained in:
Julie Pichon 2020-06-11 14:51:23 +01:00
parent bc21900d06
commit 4130a447d4
1 changed files with 3 additions and 0 deletions

View File

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