kolla-ansible/ansible/roles/aodh/tasks/bootstrap_service.yml
caoyuan ec8f05587e Optimize reconfiguration for aodh
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Change-Id: Ib54136f9d4313db05f3711fc1c8d7a07d2186d6b
Partially-implements: blueprint better-reconfigure
2017-01-26 10:03:42 -03:00

20 lines
530 B
YAML

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