aboutsummaryrefslogblamecommitdiffhomepage
path: root/mini-debian8/uninstall-ansible.sh
blob: 3573413839000c9a10b8efc3fe284179c478c7b8 (plain) (tree)




















                                                                              
#!/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/*