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=62f1a8401b2b418537a4b52107aa6b249abcdf97;hpb=b799151f59de0ff7cbf90fe3e653ef9a7bfaed10;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 62f1a84..cd55ebf 100644 --- a/ocd/infra/playbooks/roles/k8s/tasks/install.yml +++ b/ocd/infra/playbooks/roles/k8s/tasks/install.yml @@ -17,15 +17,18 @@ - name: Check whether k8s is already installed command: which k8s register: result - failed_when: false + ignore_errors: yes no_log: True - debug: msg: k8s is already present - when: result.rc == 0 + when: result.stdout != "" -- meta: end_play - when: result.rc == 0 +- 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: