a13d83400f
Changes name of ansible module kolla_docker to kolla_container. Change-Id: I13c676ed0378aa721a21a1300f6054658ad12bc7 Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
- block:
|
|
- name: Check if bifrost_deploy container is running
|
|
become: true
|
|
kolla_container_facts:
|
|
container_engine: "{{ kolla_container_engine }}"
|
|
name:
|
|
- bifrost_deploy
|
|
register: container_facts
|
|
|
|
- block:
|
|
# Ensure that all services are stopped gracefully, and in a sensible
|
|
# order.
|
|
- name: Stop services gracefully
|
|
become: true
|
|
command: "{{ kolla_container_engine }} exec bifrost_deploy systemctl stop {{ item }}.service"
|
|
with_items:
|
|
- ironic
|
|
- ironic-inspector
|
|
- mariadb
|
|
- nginx
|
|
|
|
- name: Stopping bifrost_deploy container
|
|
become: true
|
|
kolla_container:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "bifrost_deploy"
|
|
|
|
when: "'bifrost_deploy' in container_facts"
|
|
|
|
when:
|
|
- inventory_hostname in groups['bifrost']
|
|
- "'bifrost_deploy' not in skip_stop_containers"
|