diff --git a/tasks/lxc_cache_preparation_systemd_new.yml b/tasks/lxc_cache_preparation_systemd_new.yml index f3266558..c2c36020 100644 --- a/tasks/lxc_cache_preparation_systemd_new.yml +++ b/tasks/lxc_cache_preparation_systemd_new.yml @@ -28,8 +28,17 @@ jid: "{{ prestage_image.ansible_job_id }}" register: job_result until: job_result.finished + ignore_errors: true retries: 60 +- name: Trying to download image with alternate method + get_url: + url: "{{ lxc_hosts_container_image_url }}" + dest: "/tmp/{{ cache_basename }}" + validate_certs: "{{ (lxc_hosts_validate_certs | bool) | lower }}" + force: true + when: job_result.failed + - name: Ensure systemd-importd is enabled systemd: name: "systemd-importd" diff --git a/tasks/lxc_cache_preparation_systemd_old.yml b/tasks/lxc_cache_preparation_systemd_old.yml index 009714b3..68a7c890 100644 --- a/tasks/lxc_cache_preparation_systemd_old.yml +++ b/tasks/lxc_cache_preparation_systemd_old.yml @@ -37,8 +37,17 @@ jid: "{{ prestage_image.ansible_job_id }}" register: job_result until: job_result.finished + ignore_errors: true retries: 60 +- name: Trying to download image with alternate method + get_url: + url: "{{ lxc_hosts_container_image_url }}" + dest: "/tmp/{{ cache_basename }}" + validate_certs: "{{ (lxc_hosts_validate_certs | bool) | lower }}" + force: true + when: job_result.failed + - name: Place container rootfs unarchive: src: "/tmp/{{ cache_basename }}"