shell:
cmd: which k3s
register: result
- failed_when: false
+ ignore_errors: yes
no_log: True
- debug:
msg: k3s is already present
- when: result.rc == 0
+ when: result.stdout != ""
-- meta: end_play
- when: result.rc == 0
+- debug:
+# yamllint disable rule:line-length
+ msg: Ignore Uninstall Log , k3s not installed continue with Installation
+# yamllint disable rule:line-length
+ when: result.stdout == ""
- debug: var=ansible_host