X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fgrafana%2Ftasks%2Finstall.yml;h=204b2bb481d930e6adbe4e2a8d9f5bdc7e13ee75;hb=3557e89b7503e807fca0cb76707f5fafb1bfa598;hp=46245cbd0ff8f82a35acb9fe1ecf6a8ff9b27a6c;hpb=3c1bb1c727ca416486ab96384557ee3d12acf1e9;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 46245cb..204b2bb 100644 --- a/ocd/infra/playbooks/roles/grafana/tasks/install.yml +++ b/ocd/infra/playbooks/roles/grafana/tasks/install.yml @@ -15,7 +15,7 @@ --- - name: check if grafana is already installed shell: - cmd: helm status mec-grafana + cmd: helm status grafana register: result ignore_errors: yes no_log: True @@ -30,10 +30,23 @@ # yamllint disable rule:line-length when: result.stdout == "" +- name: "INSTALL: Add Grafana Repo on x86" + shell: + cmd: helm repo add grafana https://grafana.github.io/helm-charts + when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes + +- name: "INSTALL: Update helm repo" + shell: + cmd: helm repo update + when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes + - name: "INSTALL: Install grafana on x86_64" shell: - cmd: helm install mec-grafana stable/grafana + cmd: helm install grafana grafana/grafana when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes - name: "INSTALL: copy values.yaml to host" copy: @@ -43,5 +56,5 @@ - name: "INSTALL: Install grafana on aarch64" shell: - cmd: helm install mec-grafana stable/grafana -f /tmp/grafana/values.yaml + cmd: helm install grafana stable/grafana -f /tmp/grafana/values.yaml when: result is failed and ansible_architecture == 'aarch64'