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

38 lines
916 B
YAML

- name: Delete glance db-sync job
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}"
name: glance-db-sync
namespace: "{{namespace}}"
state: absent
- name: Delete glance deployment
k8s_v1beta1_deployment:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}"
name: glance-api
namespace: "{{namespace}}"
state: absent
- name: Delete glance service
k8s_v1_service:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}"
name: glance
namespace: "{{namespace}}"
state: absent
- name: Delete glance configmaps
ignore_errors: yes
k8s_v1_config_map:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: glance
namespace: "{{namespace}}"
state: absent
debug: yes