f128d19957
Their cleanup has been added to monasca cleanup command. Change-Id: I19a846e2683ae70b33ca64d2aba7ac71eb724588
23 lines
670 B
YAML
23 lines
670 B
YAML
---
|
|
- name: Stop and remove containers for disabled kafka services
|
|
become: true
|
|
kolla_docker:
|
|
action: "stop_and_remove_container"
|
|
name: "{{ item.value.container_name }}"
|
|
when:
|
|
- inventory_hostname in groups[item.value.group]
|
|
- not item.value.enabled | bool
|
|
with_dict: "{{ kafka_services }}"
|
|
|
|
- name: Removing config for any disabled services
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item.key }}"
|
|
state: "absent"
|
|
become: true
|
|
when:
|
|
- inventory_hostname in groups[item.value.group]
|
|
- not item.value.enabled | bool
|
|
with_dict: "{{ kafka_services }}"
|
|
|
|
# NOTE(dszumski): Docker volume removal is currently a manual procedure
|