5d3ca8b09e
Masakari was introduced parallelly to deploy-containers action and so we missed to add this functionality to it. Change-Id: Ibef198d20d481bc92b38af786cdf0292b246bb12 Closes-Bug: #1889611
18 lines
592 B
YAML
18 lines
592 B
YAML
---
|
|
- name: Check masakari containers
|
|
become: true
|
|
kolla_docker:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ item.value.container_name }}"
|
|
image: "{{ item.value.image }}"
|
|
privileged: "{{ item.value.privileged | default(False) }}"
|
|
volumes: "{{ item.value.volumes | reject('equalto', '') | list }}"
|
|
dimensions: "{{ item.value.dimensions }}"
|
|
when:
|
|
- inventory_hostname in groups[item.value.group]
|
|
- item.value.enabled | bool
|
|
with_dict: "{{ masakari_services }}"
|
|
notify:
|
|
- Restart {{ item.key }} container
|