Add retries to image downloads

This commit is contained in:
Danny Bessems 2022-07-04 17:08:46 +02:00
parent fa0fa30062
commit b7da591571

View File

@ -45,6 +45,8 @@
ansible.builtin.command: ansible.builtin.command:
cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }} cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
chdir: /opt/metacluster/container-images chdir: /opt/metacluster/container-images
register: imagedownload
until: imagedownload is succeeded
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}" loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
- name: Compress tarballs - name: Compress tarballs