Add retries to LXC base build command

Sometimes there could be intermittent issues on some of the
mirrors that would be picked while building the base image.

In order to increases chances of image to build, we add a retries
to increase chances to pick properly synced mirror.

Change-Id: I5546ee71cce4f4b40fbd1d38d5d49586606bbbda
This commit is contained in:
Dmitriy Rabotyagov 2023-07-18 08:41:30 +02:00 committed by Dmitriy Rabotyagov
parent a5589beb5f
commit 4686fac862
1 changed files with 4 additions and 0 deletions

View File

@ -78,3 +78,7 @@
command: "{{ lxc_hosts_container_build_command }}"
when: lxc_hosts_container_build_command | length > 0
changed_when: false
register: _build_container_base_image
until: _build_container_base_image is success
retries: 5
delay: 2