aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-debian8/uninstall-ansible.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mini-debian8/uninstall-ansible.sh')
-rwxr-xr-xmini-debian8/uninstall-ansible.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/mini-debian8/uninstall-ansible.sh b/mini-debian8/uninstall-ansible.sh
new file mode 100755
index 0000000..3573413
--- /dev/null
+++ b/mini-debian8/uninstall-ansible.sh
@@ -0,0 +1,21 @@
1#!/bin/sh
2#
3# Simple wrapper for uninstall ansible and related stuff.
4#
5
6
7echo "===> Removing Ansible..."
8apt-get -f -y --auto-remove remove ansible
9
10echo "===> Removing APT packages..."
11cat ___APT_UNINSTALL_LIST | \
12 while read ITEM; do
13 apt-get -f -y --auto-remove remove $ITEM
14 done
15apt-get clean
16
17
18echo "===> Cleaning up package list..."
19rm -rf /etc/python /etc/python2.7
20rm -rf /etc/ansible /root/.ansible /root/.cache
21rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d /var/cache/* /var/log/*