X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2FcAdvisor%2Ftasks%2Finstall.yml;h=8c49f6a9edc062368b619a182ae9afa5155ac3bd;hb=b799151f59de0ff7cbf90fe3e653ef9a7bfaed10;hp=73a8b90ecf6eb595d05a78cd9e01f84dbd5c0198;hpb=d4565738443ee3735d90fe4ae58aa3673bf2a77b;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/cAdvisor/tasks/install.yml b/ocd/infra/playbooks/roles/cAdvisor/tasks/install.yml index 73a8b90..8c49f6a 100644 --- a/ocd/infra/playbooks/roles/cAdvisor/tasks/install.yml +++ b/ocd/infra/playbooks/roles/cAdvisor/tasks/install.yml @@ -17,13 +17,21 @@ shell: cmd: helm status cadvisor register: result - ignore_errors: 'True' + failed_when: false + no_log: True -- name: "This is for Add repo helm " +- debug: + msg: cAdvisor is already present + when: result.rc == 0 + +- meta: end_play + when: result.rc == 0 + +- name: "Add helm repo" command: helm repo add code-chris https://code-chris.github.io/helm-charts when: result is failed -- name: "This is for Update helm repo" +- name: "Update helm repo" command: helm repo update when: result is failed @@ -33,7 +41,7 @@ dest: /tmp/cAdvisor/ when: result is failed -- name: "Command for install cAdvisor" +- name: "Installing cAdvisor" # yamllint disable rule:line-length command: helm install cadvisor code-chris/cadvisor -f /tmp/cAdvisor/values.yaml # yamllint disable rule:line-length