kolla-ansible/ansible/roles/octavia/tasks/bootstrap_service.yml
caoyuan 517491a93a Optimize reconfiguration for octavia
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Change-Id: If6a0d935df9f8b84d7628b2c8753aa12627e2c8a
Partially-implements: blueprint better-reconfigure
2017-01-27 21:02:02 +08:00

20 lines
554 B
YAML

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