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: