X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fk8s%2Ftasks%2Finstall.yml;h=cd55ebfae6e25412f2e70544630f048c0e90b595;hb=6ce510fccce9b5481e88d10c3ffa73ed0284b517;hp=52466ab1d2f318ebcaa99a9ffc9e8c022a4eed63;hpb=2d95a5afeaabd7f2826e3fa0e96fbe128abfe392;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/k8s/tasks/install.yml b/ocd/infra/playbooks/roles/k8s/tasks/install.yml index 52466ab..cd55ebf 100644 --- a/ocd/infra/playbooks/roles/k8s/tasks/install.yml +++ b/ocd/infra/playbooks/roles/k8s/tasks/install.yml @@ -14,9 +14,21 @@ --- # tasks file for k8s -- name: debug msg - debug: - msg: installing k8s +- name: Check whether k8s is already installed + command: which k8s + register: result + ignore_errors: yes + no_log: True + +- debug: + msg: k8s is already present + when: result.stdout != "" + +- debug: +# yamllint disable rule:line-length + msg: Ignore Uninstall Log , k8s not installed continue with Installation +# yamllint disable rule:line-length + when: result.stdout == "" - name: Install k8s shell: