Ansible playbook added
[eliot.git] / blueprints / iotgateway / playbooks / roles / eg_mecm-mepm / tasks / uninstall.yml
1 #
2 # Copyright 2020 Huawei Technologies Co., Ltd.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 ---
18
19 - name: Delete mecm-mepm secret
20   command: helm uninstall mecm-mepm-edgegallery
21   ignore_errors: yes
22   no_log: True
23
24 - name: Mecm mepm jwt delete
25   # yamllint disable rule:line-length
26   command: kubectl delete secret mecm-mepm-jwt-public-secret mecm-mepm-ssl-secret edgegallery-mepm-secret
27   # yamllint disable rule:line-length
28   ignore_errors: yes
29   no_log: True
30
31 - name: Delete mep-service-account
32   # yamllint disable rule:line-length
33   command: kubectl delete -f /tmp/eg_mecm-mepm/deploy/conf/manifest/mepm/mepm-service-account.yaml
34   ignore_errors: yes
35   no_log: True