ansible-role-k8s-mariadb/tasks/deprovision.yml

26 lines
639 B
YAML

- name: Delete mariadb deployment
k8s_v1beta1_stateful_set:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: mariadb
namespace: "{{namespace}}"
state: absent
- name: Delete mariadb service
k8s_v1_service:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: mariadb
namespace: "{{namespace}}"
state: absent
- name: Delete mariadb configmap
k8s_v1_namespace:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: mariadb
state: absent