summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2016-12-21 02:13:28 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-02-10 10:53:44 +0100
commit599ce1d450a0b7425928e40b9dd7296e5f055586 (patch)
tree17029dbfb31138ff7792117e84c1b00085fc39bd
parentdaa54ed6ced6aac872f9712c17eb0be97b3fe59b (diff)
downloadopenshift-599ce1d450a0b7425928e40b9dd7296e5f055586.tar.gz
openshift-599ce1d450a0b7425928e40b9dd7296e5f055586.tar.bz2
openshift-599ce1d450a0b7425928e40b9dd7296e5f055586.tar.xz
openshift-599ce1d450a0b7425928e40b9dd7296e5f055586.zip
Implement uninstall for system containers
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--playbooks/adhoc/uninstall.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index f0cfa7f55..ff71cfe38 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/playbooks/adhoc/uninstall.yml
@@ -148,6 +148,26 @@
- vovsbr
when: "{{ openshift_remove_all | default(true) | bool }}"
+ - shell: atomic uninstall "{{ item }}"-master
+ changed_when: False
+ failed_when: False
+ with_items:
+ - openshift-enterprise
+ - atomic-enterprise
+ - origin
+
+ - shell: atomic uninstall "{{ item }}"-node
+ changed_when: False
+ failed_when: False
+ with_items:
+ - openshift-enterprise
+ - atomic-enterprise
+ - origin
+
+ - shell: atomic uninstall openvswitch
+ changed_when: False
+ failed_when: False
+
- shell: find /var/lib/origin/openshift.local.volumes -type d -exec umount {} \; 2>/dev/null || true
changed_when: False
@@ -263,6 +283,9 @@
- /var/lib/atomic-enterprise
- /var/lib/openshift
+ - shell: systemctl daemon-reload
+ changed_when: False
+
- name: restart docker
service: name=docker state=restarted