summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
diff options
context:
space:
mode:
authorZohar Galor <zgalor@redhat.com>2017-11-20 16:21:47 +0200
committerZohar Galor <zgalor@redhat.com>2017-11-20 16:21:47 +0200
commit24ac787110041ce99e1589cd621e07bb14e546ba (patch)
tree92ff07938b0c36240eba317cc8515c128f3a8ce4 /roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
parent6b14b105e0998c63a248160fb6887f86b8f3b549 (diff)
downloadopenshift-24ac787110041ce99e1589cd621e07bb14e546ba.tar.gz
openshift-24ac787110041ce99e1589cd621e07bb14e546ba.tar.bz2
openshift-24ac787110041ce99e1589cd621e07bb14e546ba.tar.xz
openshift-24ac787110041ce99e1589cd621e07bb14e546ba.zip
Fix uninstall option for prometheus
Only remove prometheus namespace when uninstalling. This will remove all the contained objects. bz: https://bugzilla.redhat.com/show_bug.cgi?id=1492544
Diffstat (limited to 'roles/openshift_prometheus/tasks/uninstall_prometheus.yaml')
-rw-r--r--roles/openshift_prometheus/tasks/uninstall_prometheus.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_prometheus/tasks/uninstall_prometheus.yaml b/roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
new file mode 100644
index 000000000..d746402db
--- /dev/null
+++ b/roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
@@ -0,0 +1,7 @@
+---
+
+# remove namespace - This will delete all the objects inside the namespace
+- name: Remove prometheus project
+ oc_project:
+ state: absent
+ name: "{{ openshift_prometheus_namespace }}"