]> git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-debian8/uninstall-ansible.sh
Add: `mini-debian8` tag.
[github/fretlink/docker-ansible.git] / mini-debian8 / uninstall-ansible.sh
1 #!/bin/sh
2 #
3 # Simple wrapper for uninstall ansible and related stuff.
4 #
5
6
7 echo "===> Removing Ansible..."
8 apt-get -f -y --auto-remove remove ansible
9
10 echo "===> Removing APT packages..."
11 cat ___APT_UNINSTALL_LIST | \
12 while read ITEM; do
13 apt-get -f -y --auto-remove remove $ITEM
14 done
15 apt-get clean
16
17
18 echo "===> Cleaning up package list..."
19 rm -rf /etc/python /etc/python2.7
20 rm -rf /etc/ansible /root/.ansible /root/.cache
21 rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d /var/cache/* /var/log/*