kolla-ansible/ansible/roles/masakari/tasks/bootstrap_service.yml
Kien Nguyen 577bb50a04 Add Masakari Ansible role
Masakari provides Instances High Availability Service for
OpenStack clouds by automatically recovering failed Instances.

Depends-On: https://review.openstack.org/#/c/615469/
Change-Id: I0b3457232ee86576022cff64eb2e227ff9bbf0aa
Implements: blueprint ansible-masakari
Co-Authored-By: Gaëtan Trellu <gaetan.trellu@incloudus.com>
2019-08-15 09:58:53 -04:00

21 lines
601 B
YAML

---
- name: Running Masakari bootstrap container
vars:
masakari_api: "{{ masakari_services['masakari-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ masakari_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_masakari"
restart_policy: "no"
volumes: "{{ masakari_api.volumes|reject('equalto', '')|list }}"
run_once: True
delegate_to: "{{ groups[masakari_api.group][0] }}"