kolla-ansible/ansible/roles/congress/tasks/bootstrap_service.yml
caoyuan 625406e58d dev mode: Add support for congress
Provide support for kolla dev mode in congress. When
'kolla_dev_mode' or 'congress_dev_mode' variables are
enabled, source code of congress project is cloned
and bind mounted.

Partially implements: blueprint mount-sources

Change-Id: Ie6bf33aaac98d237032410a7c0a6e60e35a3fb00
2018-06-15 03:08:00 +00:00

21 lines
604 B
YAML

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