diff options
Diffstat (limited to 'mini-debian8/uninstall-ansible.sh')
-rwxr-xr-x | mini-debian8/uninstall-ansible.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mini-debian8/uninstall-ansible.sh b/mini-debian8/uninstall-ansible.sh new file mode 100755 index 0000000..3573413 --- /dev/null +++ b/mini-debian8/uninstall-ansible.sh | |||
@@ -0,0 +1,21 @@ | |||
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/* | ||