This commit is contained in:
parent
e17cd1b633
commit
ab010643df
@ -4,7 +4,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
- /opt/metacluster/helm-charts
|
- /opt/metacluster/helm-charts
|
||||||
- /opt/metacluster/container-images/shared
|
- /opt/metacluster/container-images
|
||||||
|
|
||||||
- name: Add helm repositories
|
- name: Add helm repositories
|
||||||
kubernetes.core.helm_repository:
|
kubernetes.core.helm_repository:
|
||||||
@ -45,20 +45,15 @@
|
|||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: >-
|
cmd: >-
|
||||||
skopeo copy \
|
skopeo copy \
|
||||||
--retry-times 5 \
|
--retry-times=5 \
|
||||||
--dest-compress \
|
|
||||||
--dest-shared-blob-dir /opt/metacluster/container-images/shared \
|
|
||||||
docker://{{ item }} \
|
docker://{{ item }} \
|
||||||
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ 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
|
|
||||||
retries: 5
|
|
||||||
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
|
||||||
# community.general.archive:
|
community.general.archive:
|
||||||
# dest: /opt/metacluster/container-images/image-tarballs.tgz
|
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||||
# path: /opt/metacluster/container-images/*
|
path: /opt/metacluster/container-images/*
|
||||||
# format: gz
|
format: gz
|
||||||
# remove: yes
|
remove: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user