kolla-ansible/ansible/roles/octavia/tasks/bootstrap_service.yml
Jeffrey Zhang 7f89522b94 Implement octavia ansible role
Change-Id: Ic72b49275627aff239b23e9862966923555a464f
Implements: blueprint octavia-ansible-role
2016-12-12 16:27:34 +08:00

21 lines
630 B
YAML

---
- name: Running Octavia bootstrap container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ octavia_api_image_full }}"
labels:
BOOTSTRAP:
name: "bootstrap_octavia"
restart_policy: "never"
volumes:
- "{{ node_config_directory }}/octavia-api/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
run_once: True
delegate_to: "{{ groups['octavia-api'][0] }}"