X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fk3s%2Ftasks%2Finstall.yml;h=0aaa7bd0b44d5f079e070994eeaf56c00a29dc37;hb=6ce510fccce9b5481e88d10c3ffa73ed0284b517;hp=a9968c39679a17c4418bb916b18a8a388f86eda6;hpb=59dd8106f3a4a96962d8f5d74d9c39754f1eec7b;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/k3s/tasks/install.yml b/ocd/infra/playbooks/roles/k3s/tasks/install.yml index a9968c3..0aaa7bd 100644 --- a/ocd/infra/playbooks/roles/k3s/tasks/install.yml +++ b/ocd/infra/playbooks/roles/k3s/tasks/install.yml @@ -17,7 +17,18 @@ 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