Logs added with msgs
[ealt-edge.git] / ocd / infra / playbooks / roles / prometheus / tasks / install.yml
index 29afd24..be458fd 100644 (file)
   shell:
     cmd: helm status mep-prometheus
   register: result
-  ignore_errors: true
+  ignore_errors: yes
+  no_log: True
+
+- debug:
+    msg: prometheus is already present
+  when: result.stdout != ""
+
+- debug:
+# yamllint disable rule:line-length
+    msg: Ignore Uninstall Log , prometheus not installed continue with Installation
+# yamllint disable rule:line-length
+  when: result.stdout == ""
 
 - name: Install prometheus on x86_64
   shell: