a6ba61f462
The overcloud-extras playbook called during overcloud service deploy would always invoke the kayobe_container module, even when the service (inspection_store or opensm) was disabled. With podman, this has the side effect of attempting to pull the image from the registry, even when `state` is `absent`. Change behaviour to invoke kayobe_container only when the service is enabled. This means that a manual container removal is necessary now to disable these services. Change-Id: Id3ebd6836ba8f3b2101b94637a89f97fb0eb59e1
15 lines
542 B
YAML
15 lines
542 B
YAML
---
|
|
- name: Ensure OpenSM container is running
|
|
docker_container:
|
|
image: "{{ item.value.image }}"
|
|
name: "{{ item.value.container_name }}"
|
|
network_mode: "host"
|
|
privileged: "{{ item.value.privileged | default(omit) }}"
|
|
read_only: "{{ item.value.read_only | default(omit) }}"
|
|
restart_policy: "{{ opensm_restart_policy }}"
|
|
restart_retries: "{{ opensm_restart_retries | default(omit) }}"
|
|
state: started
|
|
volumes: "{{ item.value.volumes }}"
|
|
with_dict: "{{ opensm_services }}"
|
|
when: item.value.enabled | bool
|