Added pre installation and unindtallation
[ealt-edge.git] / ocd / infra / playbooks / roles / prometheus / tasks / uninstall.yml
index c4b7876..40aca5c 100644 (file)
   shell:
     cmd: helm status mep-prometheus
   register: result
-  ignore_errors: true
+  failed_when: false
+  no_log: True
+
+- debug:
+    msg: Prometheus is not present
+  when: result.rc == 2
+
+- meta: end_play
+  when: result.rc == 2
 
 - name: Uninstall prometheus
   shell: