kolla-ansible/ansible/roles/zun/tasks/bootstrap_service.yml
root 2364bee3cc Add zun ansible role
Change-Id: I13cf03d6a97fb94dd7cb309e99a417ad101dc21a
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Partially-implements: bp add-zun-ansible-role
2017-03-30 04:15:17 -04:00

20 lines
522 B
YAML

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