kolla-ansible/ansible/roles/openvswitch/tasks/check-containers.yml
Michał Nasiadka df06af99e3 openvswitch: Add healthchecks
Depends-On: https://review.opendev.org/c/openstack/kolla/+/782815
Change-Id: I5230f017f1fa99629b81d944ba245c5778411b1f
2021-03-25 09:24:22 +00:00

19 lines
603 B
YAML

---
- name: Check openvswitch 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 }}"
dimensions: "{{ item.value.dimensions }}"
healthcheck: "{{ item.value.healthcheck }}"
when:
- item.value.enabled | bool
- item.value.host_in_groups | bool
with_dict: "{{ openvswitch_services }}"
notify:
- "Restart {{ item.key }} container"