Code Review
/
ealt-edge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added pre installation and unindtallation
[ealt-edge.git]
/
ocd
/
infra
/
playbooks
/
roles
/
cAdvisor
/
tasks
/
uninstall.yml
diff --git
a/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml
b/ocd/infra/playbooks/roles/cAdvisor/tasks/uninstall.yml
index
8a01e80
..
53a7e62
100644
(file)
--- 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
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
- name: "If cAdvisor present, then list helm ls"
command: helm ls