kolla-ansible/ansible/roles/congress/tasks/bootstrap_service.yml
caoyuan e527707056 Optimize reconfigure action for congress
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Change-Id: I568ebe2e5160982aaf5a82b6d73a753cbadc0c49
Partially-implements: blueprint better-reconfigure
2017-02-04 15:50:27 +08:00

20 lines
562 B
YAML

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