X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fprometheus%2Ftasks%2Finstall.yml;h=f8472b433de74cdb8374aaafa6b20c2717031ad0;hb=7d2bf0bf6892cb363e61156577e66d0e655a21e3;hp=0c85ecf2f931483181abd0c7a4c67573c381d2e8;hpb=eb05c8bc1426f5fcc50d03b41ebec552e6db358d;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/prometheus/tasks/install.yml b/ocd/infra/playbooks/roles/prometheus/tasks/install.yml index 0c85ecf..f8472b4 100644 --- a/ocd/infra/playbooks/roles/prometheus/tasks/install.yml +++ b/ocd/infra/playbooks/roles/prometheus/tasks/install.yml @@ -21,21 +21,27 @@ no_log: True - debug: - msg: Prpmetheus is already present - when: result.rc == 0 + msg: prometheus is already present + when: result.stdout != "" -- name: Install prometheus on x86_64 +- debug: +# yamllint disable rule:line-length + msg: Ignore Uninstall Log , prometheus not installed continue with Installation +# yamllint disable rule:line-length + when: result.stdout == "" + +- name: "INSTALL: Install prometheus on x86_64" shell: cmd: helm install mep-prometheus stable/prometheus --version v9.3.1 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/prometheus/ when: result is failed and ansible_architecture == 'aarch64' -- name: Install prometheus on aarch64 +- name: "INSTALL: Install prometheus on aarch64" shell: cmd: 'helm install mep-prometheus stable/prometheus -f /tmp/prometheus/values.yaml --version v9.3.1'