kolla-ansible/ansible/roles/trove/tasks/bootstrap_service.yml
caoyuan 1210720a95 Optimize reconfigure action for trove
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Change-Id: Icbf70b0cb242dbd705e8794369b7f8d32a43c25f
Partially-implements: blueprint better-reconfigure
2017-02-04 13:42:55 +08:00

20 lines
538 B
YAML

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