kolla-ansible/ansible/roles/barbican/tasks/bootstrap_service.yml
caoyuan 91dbe0ec0c Optimize reconfiguration for barbican
Change-Id: I0808b32115989ed55bf5401d2f5401930766d39a
Partially-implements: blueprint better-reconfigure
2017-01-24 13:55:53 +00:00

20 lines
562 B
YAML

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