kolla-ansible/ansible/roles/freezer/tasks/bootstrap_service.yml
caowei 9c82ed8071 Add freezer ansible role
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>

Change-Id: I419f7ceb219ea9643cfd225c130018f967ddd860
Partially-implements: bp freezer-ansible-role
2017-01-27 11:19:13 +00:00

20 lines
554 B
YAML

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