From: Srinivasan Date: Fri, 2 Jul 2021 17:47:54 +0000 (+0530) Subject: uninstall edgex X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=c1535a4975fd381d762cea814515673938feae71;p=eliot.git uninstall edgex Signed-off-by: Srinivasan Change-Id: I3c456d9b73e43985d7bfad545fcc3b8880ce65f6 --- diff --git a/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/main.yml b/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/main.yml index e10d37e..0feede0 100644 --- a/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/main.yml +++ b/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/main.yml @@ -19,3 +19,7 @@ - include: "install.yml" static: false when: operation == 'install' + +- include: "uninstall.yml" + static: false + when: operation == 'uninstall' diff --git a/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml b/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml new file mode 100644 index 0000000..753ff57 --- /dev/null +++ b/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml @@ -0,0 +1,25 @@ +# +# Copyright 2021 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +--- + +- name: Undeploy edgex + shell: + cmd: kubectl delete -k . + # yamllint disable rule:line-length + chdir: /tmp/el_edgex/deploy/edgex-kubernetes-support/releases/edinburgh/kubernetes + # yamllint disable rule:line-length + ignore_errors: yes