From 24ac787110041ce99e1589cd621e07bb14e546ba Mon Sep 17 00:00:00 2001 From: Zohar Galor Date: Mon, 20 Nov 2017 16:21:47 +0200 Subject: 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 --- roles/openshift_prometheus/tasks/uninstall_prometheus.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/openshift_prometheus/tasks/uninstall_prometheus.yaml (limited to 'roles/openshift_prometheus/tasks/uninstall_prometheus.yaml') 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 }}" -- cgit v1.2.1