kolla-ansible/ansible/roles/mistral/tasks/bootstrap_service.yml
caoyuan 7148b818e0 Optimize reconfiguration for mistral
Change-Id: Ieec58fe3759c8ce430a187357ca8282b0f81b7eb
Partially-implements: blueprint better-reconfigure
2017-01-24 13:52:31 +00:00

20 lines
554 B
YAML

---
- name: Running Mistral bootstrap container
vars:
mistral_api: "{{ mistral_services['mistral-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ mistral_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_mistral"
restart_policy: "never"
volumes: "{{ mistral_api.volumes }}"
run_once: True
delegate_to: "{{ groups[mistral_api.group][0] }}"