b51eeed89e
include is marked as deprecated since ansible 2.4[0] [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com> Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
# NOTE (duonghq): I break pull and config into 2 phases to prevent new version
|
|
# of service start if node or process in node crash accidentally.
|
|
- include_tasks: pull.yml
|
|
when: inventory_hostname == groups["cinder-api"][0]
|
|
|
|
- include_tasks: config.yml
|
|
when: inventory_hostname == groups["cinder-api"][0]
|
|
|
|
- include_tasks: bootstrap_service.yml
|
|
|
|
- include_tasks: pull.yml
|
|
|
|
- include_tasks: config.yml
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- name: Running Cinder online schema migration
|
|
vars:
|
|
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
detach: False
|
|
environment:
|
|
KOLLA_OSM:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
MAX_NUMBER: "{{ cinder_max_number_osm | default(10) }}"
|
|
image: "{{ cinder_api.image }}"
|
|
labels:
|
|
BOOTSTRAP:
|
|
name: "bootstrap_cinder"
|
|
restart_policy: "never"
|
|
volumes: "{{ cinder_api.volumes }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups[cinder_api.group][0] }}"
|