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

5 lines
202 B
YAML
Raw Normal View History

2022-06-27 13:34:15 +00:00
- name: Zero-out disk
ansible.builtin.shell:
2022-07-04 15:57:56 +00:00
cmd: nice -n 10 dd bs=1M count=$(df -m . | awk '/[0-9]%/{print $(NF-2)}') if=/dev/zero of=./zero; sync; sync; rm -f ./zero
2022-06-27 13:34:15 +00:00
chdir: /opt/metacluster