Added Roles for Kubeconfig file transfers.
[ealt-edge.git] / ocd / infra / playbooks / roles / cAdvisor / tasks / uninstall.yml
index 7b7dfce..53a7e62 100644 (file)
   shell:
     cmd: helm status cadvisor
   register: result
-  ignore_errors: 'True'
+  failed_when: false
+  no_log: True
 
-- name: "Go to helm ls"
+- 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
   when: result is succeeded