kolla-ansible/ansible/roles/cyborg/tasks/bootstrap_service.yml
Bai Yongjun ed2fd243d1 Add cyborg to kolla-ansible
Because kolla-ansible not have cyborg so should add it.

Implements: blueprint add-cyborg-to-kolla-ansible

Depend-On: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd

Change-Id: I6f7ae86f855c5c64697607356d0ff3161f91b239
2019-03-08 10:46:53 +08:00

20 lines
546 B
YAML

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