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
Logs added with msgs
[ealt-edge.git]
/
ocd
/
infra
/
playbooks
/
roles
/
k3s
/
tasks
/
uninstall.yml
diff --git
a/ocd/infra/playbooks/roles/k3s/tasks/uninstall.yml
b/ocd/infra/playbooks/roles/k3s/tasks/uninstall.yml
index
e5f16cc
..
bbf013c
100644
(file)
--- a/
ocd/infra/playbooks/roles/k3s/tasks/uninstall.yml
+++ b/
ocd/infra/playbooks/roles/k3s/tasks/uninstall.yml
@@
-17,15
+17,16
@@
shell:
cmd: which k3s
register: result
shell:
cmd: which k3s
register: result
- failed_when: false
+ ignore_errors: yes
no_log: True
- debug:
no_log: True
- debug:
- msg:
k3s is not present
- when: result.
rc == 2
+ msg:
Uninstalling k3s...
+ when: result.
stdout != ""
-- meta: end_play
- when: result.rc == 2
+- debug:
+ msg: Ignore Uninstall Log , K3s not installed
+ when: result.stdout == ""
- name: kill k3s
shell:
- name: kill k3s
shell: