diff --git a/tasks/lxc_cache_preparation_systemd_new.yml b/tasks/lxc_cache_preparation_systemd_new.yml index c2c36020..2a1c6e9e 100644 --- a/tasks/lxc_cache_preparation_systemd_new.yml +++ b/tasks/lxc_cache_preparation_systemd_new.yml @@ -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 diff --git a/tasks/lxc_cache_preparation_systemd_old.yml b/tasks/lxc_cache_preparation_systemd_old.yml index 68a7c890..8ab94e38 100644 --- a/tasks/lxc_cache_preparation_systemd_old.yml +++ b/tasks/lxc_cache_preparation_systemd_old.yml @@ -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