Reenable image handling;Configure Longhorn/Harbor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-29 13:07:34 +02:00
parent 51366476cc
commit 368f84769b
2 changed files with 38 additions and 29 deletions

View File

@ -30,15 +30,15 @@
loop_control:
label: "{{ item.key }}"
#- name: Pull and store containerimages
# ansible.builtin.command:
# cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
# chdir: /opt/metacluster/container-images
# loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
- name: Pull and store containerimages
ansible.builtin.command:
cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
chdir: /opt/metacluster/container-images
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
#- 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