bacd6c7f4f
The OpenSearch Dashboards container does not have a health check defined when created. This causes the container to always restart when reconfigured, even if no change has been made. Change-Id: I0b437a77aeb61bc5ae9238f900a1fa00cbc34e18 Partial-Bug: #2028362
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
---
|
|
- name: Restart opensearch container
|
|
vars:
|
|
service_name: "opensearch"
|
|
service: "{{ opensearch_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
environment: "{{ service.environment }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart opensearch-dashboards container
|
|
vars:
|
|
service_name: "opensearch-dashboards"
|
|
service: "{{ opensearch_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
environment: "{{ service.environment | default(omit) }}"
|
|
image: "{{ service.image }}"
|
|
name: "{{ service.container_name }}"
|
|
volumes: "{{ service.volumes }}"
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
|
when:
|
|
- kolla_action != "config"
|