Added pre installation and unindtallation
[ealt-edge.git] / ocd / infra / playbooks / roles / cAdvisor / tasks / install.yml
index f46bcd1..8c49f6a 100644 (file)
   shell:
     cmd: helm status cadvisor
   register: result
-  ignore_errors: 'True'
+  failed_when: false
+  no_log: True
+
+- 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