Files
homelab/infra-config/04-vm-templates/fedora-42/scripts/cleanup.sh
2025-07-06 23:01:10 -05:00

13 lines
271 B
Bash

#!/bin/bash -eux
pip uninstall -y ansible
dnf clean all
# Zero out the rest of the free space using dd, then delete the written file.
#dd if=/dev/zero of=/EMPTY bs=1M
#rm -f /EMPTY
# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
sync