# limitations under the License.
---
-- name: check whether k3s is already installed
- shell:
- cmd: which k3s
- register: result
- failed_when: false
- no_log: True
-
-- debug:
- msg: k3s is not present
- when: result.rc == 2
-
-- meta: end_play
- when: result.rc == 2
-
- name: kill k3s
shell:
cmd: k3s-killall.sh