Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
Issue #1: First attempt at full uninstall of Ansible + deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Sep 26, 2019
1 parent 8a598ea commit d87f9eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash -eux

# Remove Ansible and its dependencies.
pip3-autoremove ansible -y
pip3 install pip-autoremove
ln -s /usr/bin/pip3 /usr/bin/pip
pip-autoremove ansible -y
rm -f /usr/bin/pip
pip3 uninstall pip-autoremove

# Zero out the rest of the free space using dd, then delete the written file.
echo "Writing zeroes to free space (this could take a while)."
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY

Expand Down

0 comments on commit d87f9eb

Please sign in to comment.