X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fgrafana%2Ftasks%2Funinstall.yml;h=6f08c57dbcbc052ffcddc6e23a8b03351561596b;hb=7d2bf0bf6892cb363e61156577e66d0e655a21e3;hp=d4e5e33795d3d34423d410152326ed5973118ea9;hpb=97c655ebd49ec7ff289af583750056576c6e338e;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/grafana/tasks/uninstall.yml b/ocd/infra/playbooks/roles/grafana/tasks/uninstall.yml index d4e5e33..6f08c57 100644 --- a/ocd/infra/playbooks/roles/grafana/tasks/uninstall.yml +++ b/ocd/infra/playbooks/roles/grafana/tasks/uninstall.yml @@ -13,6 +13,21 @@ # limitations under the License. --- +- name: check if grafana is installed before deleting + shell: + cmd: helm status mec-grafana + register: result + 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: cmd: helm uninstall mec-grafana