X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fhelm%2Ftasks%2Funinstall.yml;h=09aa6b28fc48968dc1206b0734a92c7e0ff313da;hb=eb05c8bc1426f5fcc50d03b41ebec552e6db358d;hp=3e25035a43656b516a5a8f2c2fdd6a82441ee070;hpb=d4565738443ee3735d90fe4ae58aa3673bf2a77b;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/helm/tasks/uninstall.yml b/ocd/infra/playbooks/roles/helm/tasks/uninstall.yml index 3e25035..09aa6b2 100644 --- a/ocd/infra/playbooks/roles/helm/tasks/uninstall.yml +++ b/ocd/infra/playbooks/roles/helm/tasks/uninstall.yml @@ -16,13 +16,18 @@ - name: check whether helm is installed before deleting command: which helm register: result - ignore_errors: 'True' + ignore_errors: yes + no_log: True + +- debug: + msg: Helm is not present + when: result.rc == 2 - name: Helm Uninstall on x86_64 command: rm -rf linux-amd64/helm when: result is succeeded and ansible_architecture == 'x86_64' -- name: Remove download file on x86_64 +- name: Remove download helm file on x86_64 command: rm ~/helm-v3.0.2-linux-amd64.tar.gz when: result is succeeded and ansible_architecture == 'x86_64' @@ -30,7 +35,7 @@ command: rm -rf linux-arm64/helm when: result is succeeded and ansible_architecture == 'aarch64' -- name: Remove download file on aarch64 +- name: Remove download helm file on aarch64 command: rm helm-v3.0.2-linux-arm64.tar.gz when: result is succeeded and ansible_architecture == 'aarch64'