aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-debian8/uninstall-ansible.sh
blob: 3573413839000c9a10b8efc3fe284179c478c7b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# Simple wrapper for uninstall ansible and related stuff.
#


echo "===> Removing Ansible..."
apt-get -f -y --auto-remove remove ansible

echo "===> Removing APT packages..."
cat ___APT_UNINSTALL_LIST  | \
    while read ITEM; do
        apt-get -f -y --auto-remove remove $ITEM
    done
apt-get clean


echo "===> Cleaning up package list..."
rm -rf /etc/python  /etc/python2.7
rm -rf /etc/ansible  /root/.ansible  /root/.cache 
rm -rf /var/lib/apt/lists/*  /etc/apt/sources.list.d  /var/cache/*  /var/log/*