From e9549dc5f790effe158e130bbe4eec869ddbab0f Mon Sep 17 00:00:00 2001 From: Zohar Galor Date: Wed, 7 Feb 2018 15:24:36 +0200 Subject: Fix uninstall using openshift_prometheus_state=absent This was broken in https://github.com/openshift/openshift-ansible/pull/6811 bz: https://bugzilla.redhat.com/show_bug.cgi?id=1540806 --- 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