kolla-ansible/ansible/roles/horizon/tasks/bootstrap_service.yml
caoyuan fdecd21246 Optimize reconfigure action for horizon
Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Change-Id: Ieb44258cd99744a92ef1aa958e3bdccf9519f212
Partially-implements: blueprint better-reconfigure
2017-02-09 11:32:32 +08:00

20 lines
534 B
YAML

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