Created
August 5, 2019 16:50
-
-
Save aelkz/c2cdcc03021f254f6489d1b5e31fecc0 to your computer and use it in GitHub Desktop.
ocp cleanup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook -vvv -i /home/raphael.alex/openshift/inventory /usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml | |
ansible -vvv nodes -i /home/raphael.alex/openshift/inventory -m file -a "dest=/etc/origin state=absent" | |
ansible -vvv nodes -i /home/raphael.alex/openshift/inventory -m file -a "dest=/etc/cni state=absent" | |
yum -y remove openshift-ansible-3.11.123 openshift-ansible-3.11.98 openshift-ansible-3.11.129 | |
yum -y remove ansible ansible* | |
yum -y remove openshift openshift-* etcd docker docker-common | |
yum -y remove docker docker-common docker-selinux docker-engine | |
yum -y docker* | |
rm -rf /etc/origin /var/lib/openshift /etc/etcd /var/lib/etcd /etc/sysconfig/atomic-openshift* /etc/sysconfig/docker* /root/.kube/config /etc/ansible/facts.d /usr/share/openshift /var/lib/docker | |
rm -rf /tmp/ansible* /tmp/openshift* /tmp/tmp* | |
rm -rf /root/.docker /root/openshift_bootstrap | |
rm -rf /usr/share/ansible/openshift* | |
rm -rf /var/lib/origin /var/lib/docker /usr/bin/openshift* /etc/docker /etc/docker* /usr/bin/docker | |
rm -fr usr/local/bin/openshift-node /usr/share/ansible/openshift-ansible /usr/bin/openshift | |
yum clean all | |
systemctl reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment