Added pre installation and unindtallation
[ealt-edge.git] / ocd / infra / playbooks / roles / k8s / tasks / install.yml
index 52466ab..62f1a84 100644 (file)
 
 ---
 # tasks file for k8s
-- name: debug msg
-  debug:
-    msg: installing k8s
+- name: Check whether k8s is already installed
+  command: which k8s
+  register: result
+  failed_when: false
+  no_log: True
+
+- debug:
+    msg: k8s is already present
+  when: result.rc == 0
+
+- meta: end_play
+  when: result.rc == 0
 
 - name: Install k8s
   shell: