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


echo "===> Removing Ansible..."
pip uninstall -y ansible

echo "===> Removing PIP packages..."
cat ___PIP_UNINSTALL_LIST  | \
    while read ITEM; do
        pip uninstall -y $ITEM
    done

echo "===> Removing APK packages..."
cat ___APK_UNINSTALL_LIST  | \
    while read ITEM; do
        apk del $ITEM
    done


echo "===> Cleaning up package list..."
rm -rf /var/lib/python2.7  /usr/lib/python2.7
rm -rf /etc/ansible  /root/.ansible  /root/.cache  /root/.ash_history
rm -rf /var/cache/apk