Change tarball scope;Try zeroing disk
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-06-27 13:55:59 +02:00
parent cb84a02b6f
commit dcbe6c397f
2 changed files with 8 additions and 4 deletions

View File

@ -39,8 +39,7 @@
- name: Compress tarballs
community.general.archive:
dest: /opt/metacluster/container-images/{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar.gz
path: /opt/metacluster/container-images/{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar
dest: /opt/metacluster/container-images/image-tarballs.tgz
path: /opt/metacluster/container-images/*
format: gz
remove: yes
ignore_errors: yes
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"

View File

@ -2,3 +2,8 @@
import_tasks: k3s.yml
- name: Pre-stage meta components
import_tasks: components.yml
- ansible.builtin.command:
cmd: dd bs=1M count=$(df -m . | awk '/[0-9]%/{print $(NF-2)}') if=/dev/zero of=./zero; sync; rm -f ./zero
chdir: /opt/metacluster