Packer.Images/ansible/roles/metacluster/tasks/cleanup.yml

5 lines
191 B
YAML
Raw Normal View History

2022-06-27 13:34:15 +00:00
- 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