2019-03-22 19:06:37 -06:00
|
|
|
---
|
|
|
|
- name: Check aodh containers
|
|
|
|
become: true
|
|
|
|
kolla_docker:
|
|
|
|
action: "compare_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ item.value.container_name }}"
|
|
|
|
image: "{{ item.value.image }}"
|
2022-07-25 09:52:05 +02:00
|
|
|
volumes: "{{ item.value.volumes | reject('equalto', '') | list }}"
|
2019-03-22 19:06:37 -06:00
|
|
|
dimensions: "{{ item.value.dimensions }}"
|
2021-03-05 11:11:00 +00:00
|
|
|
healthcheck: "{{ item.value.healthcheck | default(omit) }}"
|
2019-03-22 19:06:37 -06:00
|
|
|
when:
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ aodh_services }}"
|
|
|
|
notify:
|
|
|
|
- "Restart {{ item.key }} container"
|