---
- name: Running Searchlight bootstrap container
  vars:
    searchlight_api: "{{ searchlight_services['searchlight-api'] }}"
  become: true
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    detach: False
    environment:
      KOLLA_BOOTSTRAP:
      KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
    image: "{{ searchlight_api.image }}"
    labels:
      BOOTSTRAP:
    name: "bootstrap_searchlight"
    restart_policy: "never"
    volumes: "{{ searchlight_api.volumes }}"
  run_once: True
  delegate_to: "{{ groups[searchlight_api.group][0] }}"
