Logs added with msgs
[ealt-edge.git] / ocd / infra / playbooks / roles / k3s / tasks / install.yml
index a9968c3..0aaa7bd 100644 (file)
   shell:
     cmd: which k3s
   register: result
-  ignore_errors: true
+  ignore_errors: yes
+  no_log: True
+
+- debug:
+    msg: k3s is already present
+  when: result.stdout != ""
+
+- 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