kolla-ansible/ansible/roles/designate/tasks/bootstrap_service.yml
Mauricio Lima 871733c956 Optimize reconfiguration for designate
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Co-Authored-By: Francisco Edigleison Barbosa <barbosaedigleison@gmail.com>
Change-Id: I68c7e753060af2544acdb7d0a2c641c85bad42c6
Partially-implements: blueprint better-reconfigure
2017-02-13 20:39:33 +08:00

20 lines
590 B
YAML

---
- name: Running Designate bootstrap container
vars:
designate_central: "{{ designate_services['designate-central'] }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ designate_central.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_designate"
restart_policy: "never"
volumes: "{{ designate_central.volumes }}"
run_once: True
delegate_to: "{{ groups[designate_central.group][0] }}"