Logs added with msgs
[ealt-edge.git] / ocd / infra / playbooks / roles / prometheus / tasks / uninstall.yml
index d9a1f4e..c6436c5 100644 (file)
   no_log: True
 
 - debug:
-    msg: Prometheus is not present
-  when: result.rc == 2
+    msg: Uninstalling prometheus...
+  when: result.stdout != ""
+
+- debug:
+    msg: Ignore Uninstall Log , Prometheus not installed
+  when: result.stdout == ""
 
 - name: Uninstall prometheus
   shell: