Changed install and uninstall condition
[ealt-edge.git] / ocd / infra / playbooks / roles / grafana / tasks / uninstall.yml
index 8d76776..6f08c57 100644 (file)
   shell:
     cmd: helm status mec-grafana
   register: result
-  ignore_errors: true
+  ignore_errors: yes
+  no_log: True
+
+- debug:
+    msg: Uninstalling docker...
+  when: result.stdout != ""
+
+- debug:
+    msg: Ignore Uninstall Log , Grafana not installed
+  when: result.stdout == ""
 
 - name: Uninstall grafana
   shell: