This commit is contained in:
parent
e17cd1b633
commit
ab010643df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user