summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-02-07 13:22:28 -0800
committerGitHub <noreply@github.com>2018-02-07 13:22:28 -0800
commit5a3fdd11e8ba92693b7c842e3210c40a76fe5b15 (patch)
tree64aad461ffb9b5c75eaa8aba582a62b28356b29e /roles/openshift_prometheus/tasks/uninstall_prometheus.yaml
parente4cbec17b2a2913c38c67f913c739b5f0772d0dd (diff)
parente9549dc5f790effe158e130bbe4eec869ddbab0f (diff)
downloadopenshift-5a3fdd11e8ba92693b7c842e3210c40a76fe5b15.tar.gz
openshift-5a3fdd11e8ba92693b7c842e3210c40a76fe5b15.tar.bz2
openshift-5a3fdd11e8ba92693b7c842e3210c40a76fe5b15.tar.xz
openshift-5a3fdd11e8ba92693b7c842e3210c40a76fe5b15.zip
Merge pull request #7044 from zgalor/fix_uninstall_bug
Automatic merge from submit-queue. 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
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 }}"