]> git.immae.eu Git - github/fretlink/docker-ansible.git/blame - mini-alpine3/uninstall-ansible.sh
debian9: use "slim" version of debian image
[github/fretlink/docker-ansible.git] / mini-alpine3 / uninstall-ansible.sh
CommitLineData
f9662428
WY
1#!/bin/sh
2#
3# Simple wrapper for uninstall ansible and related stuff.
4#
5
6
7echo "===> Removing Ansible..."
8pip uninstall -y ansible
9
10echo "===> Removing PIP packages..."
11cat ___PIP_UNINSTALL_LIST | \
12 while read ITEM; do
13 pip uninstall -y $ITEM
14 done
15
16echo "===> Removing APK packages..."
17cat ___APK_UNINSTALL_LIST | \
18 while read ITEM; do
19 apk del $ITEM
20 done
21
22
23echo "===> Cleaning up package list..."
24rm -rf /var/lib/python2.7 /usr/lib/python2.7
25rm -rf /etc/ansible /root/.ansible /root/.cache /root/.ash_history
26rm -rf /var/cache/apk