Packer.Images/ansible/roles/metacluster/tasks/cleanup.yml
2022-06-27 15:34:15 +02:00

5 lines
191 B
YAML

- name: Zero-out disk
ansible.builtin.shell:
cmd: dd bs=1M count=$(df -m . | awk '/[0-9]%/{print $(NF-2)}') if=/dev/zero of=./zero; sync; sync; rm -f ./zero
chdir: /opt/metacluster