# limitations under the License.
---
-- name: check if grafana is installed before deleting
- shell:
- cmd: helm status mec-grafana
- register: result
- failed_when: false
- no_log: True
-
-- debug:
- msg: grafana is not present
- when: result.rc == 2
-
-- meta: end_play
- when: result.rc == 2
-
- name: Uninstall grafana
shell:
cmd: helm uninstall mec-grafana