a13d83400f
Changes name of ansible module kolla_docker to kolla_container. Change-Id: I13c676ed0378aa721a21a1300f6054658ad12bc7 Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
---
|
|
- name: Check hacluster containers
|
|
become: true
|
|
kolla_container:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image | default(omit) }}"
|
|
volumes: "{{ service.volumes | default(omit) }}"
|
|
dimensions: "{{ service.dimensions | default(omit) }}"
|
|
volumes_from: "{{ service.volumes_from | default(omit) }}"
|
|
privileged: "{{ service.privileged | default(omit) }}"
|
|
cap_add: "{{ service.cap_add | default(omit) }}"
|
|
environment: "{{ service.environment | default(omit) }}"
|
|
ipc_mode: "{{ service.ipc_mode | default(omit) }}"
|
|
pid_mode: "{{ service.pid_mode | default(omit) }}"
|
|
security_opt: "{{ service.security_opt | default(omit) }}"
|
|
labels: "{{ service.labels | default(omit) }}"
|
|
command: "{{ service.command | default(omit) }}"
|
|
vars:
|
|
service_name: "{{ item.key }}"
|
|
service: "{{ item.value }}"
|
|
with_dict: "{{ hacluster_services | select_services_enabled_and_mapped_to_host }}"
|
|
notify:
|
|
- "Restart {{ service_name }} container"
|