kolla-ansible/ansible/roles/magnum/tasks/bootstrap_service.yml
Mauricio Lima 5a47049615 Optimize reconfiguration for magnum
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Change-Id: I478bc30b4fcf61507298f16001370de3e129a11f
Partially-implements: blueprint better-reconfigure
2017-01-24 13:25:20 +00:00

20 lines
546 B
YAML

---
- name: Running Magnum bootstrap container
vars:
magnum_api: "{{ magnum_services['magnum-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ magnum_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_magnum"
restart_policy: "never"
volumes: "{{ magnum_api.volumes }}"
run_once: True
delegate_to: "{{ groups[magnum_api.group][0] }}"