Code Review
/
ealt-edge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added pre installation and unindtallation
[ealt-edge.git]
/
ocd
/
infra
/
playbooks
/
roles
/
k8s
/
tasks
/
install.yml
diff --git
a/ocd/infra/playbooks/roles/k8s/tasks/install.yml
b/ocd/infra/playbooks/roles/k8s/tasks/install.yml
index
52466ab
..
62f1a84
100644
(file)
--- a/
ocd/infra/playbooks/roles/k8s/tasks/install.yml
+++ b/
ocd/infra/playbooks/roles/k8s/tasks/install.yml
@@
-14,9
+14,18
@@
---
# tasks file for k8s
---
# 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:
- name: Install k8s
shell: