Add retry for backup get_url task

As CentOS aria2 package is still only in epel-testing repo,
get_url tends to fail with timout errors, which forces to do rechecks
and creates extra load on gates.
So we're adding retries for this task and extending timeout.

Change-Id: I26d3c9338247ffc789bf4a5291e65e954151cc51
This commit is contained in:
Dmitriy Rabotjagov 2019-05-12 19:24:54 +03:00
parent af76d49905
commit 1b1078aca9
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,11 @@
dest: "/tmp/{{ cache_basename }}"
validate_certs: "{{ (lxc_hosts_validate_certs | bool) | lower }}"
force: true
timeout: 15
register: image_download
until: image_download is success
retries: 3
delay: 2
when: job_result.failed
- name: Ensure systemd-importd is enabled

View File

@ -46,6 +46,11 @@
dest: "/tmp/{{ cache_basename }}"
validate_certs: "{{ (lxc_hosts_validate_certs | bool) | lower }}"
force: true
timeout: 15
register: image_download
until: image_download is success
retries: 3
delay: 2
when: job_result.failed
- name: Place container rootfs