2019-03-22 19:06:37 -06:00
|
|
|
---
|
|
|
|
- name: Check cyborg containers
|
|
|
|
become: true
|
|
|
|
kolla_docker:
|
|
|
|
action: "compare_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ item.value.container_name }}"
|
|
|
|
image: "{{ item.value.image }}"
|
2020-04-20 10:36:59 +08:00
|
|
|
privileged: "{{ item.value.privileged | default(False) }}"
|
2019-03-22 19:06:37 -06:00
|
|
|
volumes: "{{ item.value.volumes }}"
|
|
|
|
dimensions: "{{ item.value.dimensions }}"
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ cyborg_services }}"
|
|
|
|
notify:
|
|
|
|
- Restart {{ item.key }} container
|