aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-debian9/uninstall-ansible.sh
diff options
context:
space:
mode:
authorWilliam Yeh <william.pjyeh@gmail.com>2017-09-14 15:57:43 +0800
committerWilliam Yeh <william.pjyeh@gmail.com>2017-09-14 17:56:59 +0800
commitdeeab1a101da6710574174dbe47199f9e8900b93 (patch)
tree95605a54ab972f9b821267be534103803fb84f2a /mini-debian9/uninstall-ansible.sh
parent57d366d79328ee5d127d05644b108bd4f7915cdc (diff)
downloaddocker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.tar.gz
docker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.tar.zst
docker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.zip
Add: Debian 9 ("Stretch") support.
Diffstat (limited to 'mini-debian9/uninstall-ansible.sh')
-rwxr-xr-xmini-debian9/uninstall-ansible.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/mini-debian9/uninstall-ansible.sh b/mini-debian9/uninstall-ansible.sh
new file mode 100755
index 0000000..3573413
--- /dev/null
+++ b/mini-debian9/uninstall-ansible.sh
@@ -0,0 +1,21 @@
1#!/bin/sh
2#
3# Simple wrapper for uninstall ansible and related stuff.
4#
5
6
7echo "===> Removing Ansible..."
8apt-get -f -y --auto-remove remove ansible
9
10echo "===> Removing APT packages..."
11cat ___APT_UNINSTALL_LIST | \
12 while read ITEM; do
13 apt-get -f -y --auto-remove remove $ITEM
14 done
15apt-get clean
16
17
18echo "===> Cleaning up package list..."
19rm -rf /etc/python /etc/python2.7
20rm -rf /etc/ansible /root/.ansible /root/.cache
21rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d /var/cache/* /var/log/*