kolla-ansible/ansible/roles/manila/tasks/bootstrap_service.yml
Mauricio Lima 035ab8b79b Optimize reconfigure action for manila
Change-Id: Ia4dcc5eddd2b18a4b9b36d9bd809c405d4f92b27
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Co-Authored-By: Francisco Edigleison Barbosa <barbosaedigleison@gmail.com>
Partially-implements: blueprint better-reconfigure
2017-02-01 19:58:32 +08:00

20 lines
546 B
YAML

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