X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ocd%2Finfra%2Fplaybooks%2Froles%2FcAdvisor%2Ftasks%2Funinstall.yml;h=53a7e628ca37595f0bdf7a135407c85e1fa6d828;hb=b799151f59de0ff7cbf90fe3e653ef9a7bfaed10;hp=8a01e80ce94ba323aca70d545d1e505e810ab418;hpb=51d4443cc5388c98500d5b1520ed2457b3682da9;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml b/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml index 8a01e80..53a7e62 100644 --- a/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml +++ b/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml @@ -18,7 +18,15 @@ shell: cmd: helm status cadvisor register: result - ignore_errors: 'True' + failed_when: false + no_log: True + +- debug: + msg: cAdvisor is not present + when: result.rc == 2 + +- meta: end_play + when: result.rc == 2 - name: "If cAdvisor present, then list helm ls" command: helm ls