diff --git a/ansible/roles/metacluster/tasks/components.yml b/ansible/roles/metacluster/tasks/components.yml index 2b3334c..3351443 100644 --- a/ansible/roles/metacluster/tasks/components.yml +++ b/ansible/roles/metacluster/tasks/components.yml @@ -4,7 +4,7 @@ state: directory loop: - /opt/metacluster/helm-charts - - /opt/metacluster/container-images/shared + - /opt/metacluster/container-images - name: Add helm repositories kubernetes.core.helm_repository: @@ -45,20 +45,15 @@ ansible.builtin.command: cmd: >- skopeo copy \ - --retry-times 5 \ - --dest-compress \ - --dest-shared-blob-dir /opt/metacluster/container-images/shared \ + --retry-times=5 \ docker://{{ item }} \ docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }} chdir: /opt/metacluster/container-images - register: imagedownload - until: imagedownload is succeeded - retries: 5 loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}" -#- name: Compress tarballs -# community.general.archive: -# dest: /opt/metacluster/container-images/image-tarballs.tgz -# path: /opt/metacluster/container-images/* -# format: gz -# remove: yes +- name: Compress tarballs + community.general.archive: + dest: /opt/metacluster/container-images/image-tarballs.tgz + path: /opt/metacluster/container-images/* + format: gz + remove: yes