kolla-ansible/ansible/roles/sahara/tasks/bootstrap_service.yml
Mauricio Lima 8b0fa7728c Optimize reconfiguration for sahara
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Change-Id: Iefc3ffc03a15a2e8eea49e91297ce75a5690010b
Partially-implements: blueprint better-reconfigure
2017-01-24 13:53:41 +00:00

20 lines
546 B
YAML

---
- name: Running Sahara bootstrap container
vars:
sahara_api: "{{ sahara_services['sahara-api'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ sahara_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_sahara"
restart_policy: "never"
volumes: "{{ sahara_api.volumes }}"
run_once: True
delegate_to: "{{ groups[sahara_api.group][0] }}"