]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # Simple wrapper for uninstall ansible and related stuff. | |
4 | # | |
5 | ||
6 | ||
7 | echo "===> Removing Ansible..." | |
8 | pip uninstall -y ansible | |
9 | ||
10 | echo "===> Removing PIP packages..." | |
11 | cat ___PIP_UNINSTALL_LIST | \ | |
12 | while read ITEM; do | |
13 | pip uninstall -y $ITEM | |
14 | done | |
15 | ||
16 | echo "===> Removing APK packages..." | |
17 | cat ___APK_UNINSTALL_LIST | \ | |
18 | while read ITEM; do | |
19 | apk del $ITEM | |
20 | done | |
21 | ||
22 | ||
23 | echo "===> Cleaning up package list..." | |
24 | rm -rf /var/lib/python2.7 /usr/lib/python2.7 | |
25 | rm -rf /etc/ansible /root/.ansible /root/.cache /root/.ash_history | |
26 | rm -rf /var/cache/apk |