db517a44e4
Change-Id: I3f43df7766c57622ab8d01a759fbeeef0a0c2b93 Implements: blueprint masakari-hostmonitor Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
19 lines
650 B
YAML
19 lines
650 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 }}"
|
|
ipc_mode: "{{ item.value.ipc_mode | default(omit) }}"
|
|
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
|