eg_mecm-fe role uninstalltion playbook added 40/3840/1
authorarvindpatel <arvind.patel@huawei.com>
Wed, 28 Oct 2020 11:35:50 +0000 (17:05 +0530)
committerarvindpatel <arvind.patel@huawei.com>
Wed, 28 Oct 2020 11:36:53 +0000 (17:06 +0530)
Signed-off-by: arvindpatel <arvind.patel@huawei.com>
Change-Id: Ia20ec126a9acb5698688949ce3db4ce2454954e5

ocd/infra/playbooks/roles/eg_mecm-fe/tasks/main.yml
ocd/infra/playbooks/roles/eg_mecm-fe/tasks/uninstall.yml [new file with mode: 0644]

index 51d8432..b168173 100644 (file)
@@ -19,3 +19,7 @@
 - include: "install.yml"
   static: false
   when: operation == 'install'
+
+- include: "uninstall.yml"
+  static: false
+  when: operation == 'uninstall'
diff --git a/ocd/infra/playbooks/roles/eg_mecm-fe/tasks/uninstall.yml b/ocd/infra/playbooks/roles/eg_mecm-fe/tasks/uninstall.yml
new file mode 100644 (file)
index 0000000..c51438e
--- /dev/null
@@ -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: Uninstall mecm fe
+  command: helm uninstall mecm-fe-edgegallery