kolla-ansible/ansible/roles/cloudkitty/tasks/bootstrap_service.yml
caoyuan 2363a8e469 Optimize reconfigure action for cloudkitty
Change-Id: I7389a437d54db9c6dfb4706b2fe541a4c4702de5
Partially-implements: blueprint better-reconfigure
2017-01-26 03:22:32 +00:00

20 lines
578 B
YAML

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