2018-12-02 21:17:07 +08:00
|
|
|
---
|
|
|
|
- name: Restart cyborg-api container
|
|
|
|
vars:
|
|
|
|
service_name: "cyborg-api"
|
|
|
|
service: "{{ cyborg_services[service_name] }}"
|
2019-04-09 11:59:02 +00:00
|
|
|
become: true
|
2018-12-02 21:17:07 +08:00
|
|
|
kolla_docker:
|
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
volumes: "{{ service.volumes }}"
|
|
|
|
dimensions: "{{ service.dimensions }}"
|
|
|
|
when:
|
2019-04-01 16:38:34 +08:00
|
|
|
- kolla_action != "config"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
|
|
|
- name: Restart cyborg-conductor container
|
|
|
|
vars:
|
|
|
|
service_name: "cyborg-conductor"
|
|
|
|
service: "{{ cyborg_services[service_name] }}"
|
2019-04-09 11:59:02 +00:00
|
|
|
become: true
|
2018-12-02 21:17:07 +08:00
|
|
|
kolla_docker:
|
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
volumes: "{{ service.volumes }}"
|
|
|
|
dimensions: "{{ service.dimensions }}"
|
|
|
|
when:
|
2019-04-01 16:38:34 +08:00
|
|
|
- kolla_action != "config"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
|
|
|
- name: Restart cyborg-agent container
|
|
|
|
vars:
|
|
|
|
service_name: "cyborg-agent"
|
|
|
|
service: "{{ cyborg_services[service_name] }}"
|
2019-04-09 11:59:02 +00:00
|
|
|
become: true
|
2018-12-02 21:17:07 +08:00
|
|
|
kolla_docker:
|
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
volumes: "{{ service.volumes }}"
|
|
|
|
dimensions: "{{ service.dimensions }}"
|
|
|
|
when:
|
2019-04-01 16:38:34 +08:00
|
|
|
- kolla_action != "config"
|