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:
parent
a5589beb5f
commit
4686fac862
@ -78,3 +78,7 @@
|
|||||||
command: "{{ lxc_hosts_container_build_command }}"
|
command: "{{ lxc_hosts_container_build_command }}"
|
||||||
when: lxc_hosts_container_build_command | length > 0
|
when: lxc_hosts_container_build_command | length > 0
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
register: _build_container_base_image
|
||||||
|
until: _build_container_base_image is success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
Loading…
Reference in New Issue
Block a user