X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fgrafana%2Ftasks%2Finstall.yml;h=46245cbd0ff8f82a35acb9fe1ecf6a8ff9b27a6c;hb=7d2bf0bf6892cb363e61156577e66d0e655a21e3;hp=7efd8a6cf23d3770d5d35e1aaa739cdfbaee595c;hpb=b799151f59de0ff7cbf90fe3e653ef9a7bfaed10;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/grafana/tasks/install.yml b/ocd/infra/playbooks/roles/grafana/tasks/install.yml index 7efd8a6..46245cb 100644 --- a/ocd/infra/playbooks/roles/grafana/tasks/install.yml +++ b/ocd/infra/playbooks/roles/grafana/tasks/install.yml @@ -17,28 +17,31 @@ shell: cmd: helm status mec-grafana register: result - failed_when: false + ignore_errors: yes no_log: True - debug: - msg: Grafana is already present - when: result.rc == 0 + msg: grafana is already present + when: result.stdout != "" -- meta: end_play - when: result.rc == 0 +- debug: +# yamllint disable rule:line-length + msg: Ignore Uninstall Log , Grafana not installed continue with Installation +# yamllint disable rule:line-length + when: result.stdout == "" -- name: Install grafana on x86_64 +- name: "INSTALL: Install grafana on x86_64" shell: cmd: helm install mec-grafana stable/grafana when: result is failed and ansible_architecture == 'x86_64' -- name: copy values.yaml to host +- name: "INSTALL: copy values.yaml to host" copy: src: values.yaml dest: /tmp/grafana/ when: result is failed and ansible_architecture == 'aarch64' -- name: Install grafana on aarch64 +- name: "INSTALL: Install grafana on aarch64" shell: cmd: helm install mec-grafana stable/grafana -f /tmp/grafana/values.yaml when: result is failed and ansible_architecture == 'aarch64'