From c805e739836b89eb8e4c15388ebb424e9d2fe8ef Mon Sep 17 00:00:00 2001 From: arvindpatel Date: Wed, 28 Oct 2020 17:13:43 +0530 Subject: [PATCH] eg_appstore uninstall playbook added Signed-off-by: arvindpatel Change-Id: I01c4f03294f31baa202a57975782583e7ffdcb05 --- .../playbooks/roles/eg_appstore/tasks/main.yml | 21 +++++++++++++++++++++ .../playbooks/roles/eg_appstore/tasks/uninstall.yml | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 ocd/infra/playbooks/roles/eg_appstore/tasks/uninstall.yml diff --git a/ocd/infra/playbooks/roles/eg_appstore/tasks/main.yml b/ocd/infra/playbooks/roles/eg_appstore/tasks/main.yml index bb6447b..e8bea5a 100644 --- a/ocd/infra/playbooks/roles/eg_appstore/tasks/main.yml +++ b/ocd/infra/playbooks/roles/eg_appstore/tasks/main.yml @@ -1,5 +1,26 @@ +# +# Copyright 2020 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. +# + --- + # tasks file for eg_appstore - include: "install.yml" static: false when: operation == 'install' + +- include: "uninstall.yml" + static: false + when: operation == 'uninstall' diff --git a/ocd/infra/playbooks/roles/eg_appstore/tasks/uninstall.yml b/ocd/infra/playbooks/roles/eg_appstore/tasks/uninstall.yml new file mode 100644 index 0000000..d4e089f --- /dev/null +++ b/ocd/infra/playbooks/roles/eg_appstore/tasks/uninstall.yml @@ -0,0 +1,20 @@ +# +# Copyright 2020 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: Unisntall appstore + command: helm uninstall appstore-edgegallery -- 2.16.6