no_log: True
- debug:
- msg: k3s is not present
- when: result.rc == 2
+ msg: Uninstalling k3s...
+ when: result.stdout != ""
-- name: kill k3s
+- debug:
+ msg: "UNINSTALL: Ignore Uninstall Log , K3s not installed"
+ when: result.stdout == ""
+
+- name: "UNINSTALL: kill k3s"
shell:
cmd: k3s-killall.sh
when: result is succeeded
-- name: uninstall k3s
+- name: "UNINSTALL: uninstall k3s"
shell:
cmd: k3s-uninstall.sh
when: result is succeeded