---
- 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] }}"
