--- # SPDX-license-identifier: Apache-2.0 ############################################################################## # Copyright (c) 2018 # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - hosts: kube-master tasks: - name: Load kud variables include_vars: file: kud-vars.yml - name: Change the emco directory and run helm delete command: /usr/local/bin/helm uninstall --namespace emco emco register: helm_delete args: chdir: /opt/multicloud/deployments/helm/v2/emco - debug: var: helm_delete.stdout_lines - name: Change the emco directory and delete the emco namespace command: /usr/local/bin/kubectl delete ns emco register: delete_emco_ns args: chdir: /opt/multicloud/deployments/helm/v2/emco - debug: var: delete_emco_ns.stdout_lines - name: Change the emco directory and make clean command: /usr/bin/make clean register: make_clean args: chdir: /opt/multicloud/deployments/helm/v2/emco - debug: var: make_clean.stdout_lines - name: clean multicloud-k8s path file: state: absent path: /opt/multicloud