---
- name: Starting horizon container
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    image: "{{ horizon_image_full }}"
    name: "horizon"
    environment:
      ENABLE_CLOUDKITTY: "{{ 'yes' if enable_cloudkitty | bool else 'no' }}"
      ENABLE_IRONIC: "{{ 'yes' if enable_ironic | bool else 'no' }}"
      ENABLE_MANILA: "{{ 'yes' if  enable_manila | bool else 'no' }}"
      ENABLE_NEUTRON_LBAAS: "{{ 'yes' if  enable_neutron_lbaas | bool else 'no' }}"
      ENABLE_SAHARA: "{{ 'yes' if enable_sahara | bool else 'no' }}"
      ENABLE_SENLIN: "{{ 'yes' if enable_senlin | bool else 'no' }}"
      ENABLE_TROVE: "{{ 'yes' if enable_trove | bool else 'no' }}"
      ENABLE_ZAQAR: "{{ 'yes' if enable_zaqar | bool else 'no' }}"
    volumes:
      - "{{ node_config_directory }}/horizon/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "kolla_logs:/var/log/kolla/"
  when: inventory_hostname in groups['horizon']

---
- name: Starting horizon container
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    image: "{{ horizon_image_full }}"
    name: "horizon"
    environment:
      ENABLE_CLOUDKITTY: "{{ 'yes' if enable_cloudkitty | bool else 'no' }}"
      ENABLE_IRONIC: "{{ 'yes' if enable_ironic | bool else 'no' }}"
      ENABLE_MANILA: "{{ 'yes' if  enable_manila | bool else 'no' }}"
      ENABLE_NEUTRON_LBAAS: "{{ 'yes' if  enable_neutron_lbaas | bool else 'no' }}"
      ENABLE_SAHARA: "{{ 'yes' if enable_sahara | bool else 'no' }}"
      ENABLE_SEARCHLIGHT: "{{ 'yes' if enable_searchlight | bool else 'no' }}"
      ENABLE_SENLIN: "{{ 'yes' if enable_senlin | bool else 'no' }}"
      ENABLE_TROVE: "{{ 'yes' if enable_trove | bool else 'no' }}"
      ENABLE_ZAQAR: "{{ 'yes' if enable_zaqar | bool else 'no' }}"
    volumes:
      - "{{ node_config_directory }}/horizon/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "kolla_logs:/var/log/kolla/"
  when: inventory_hostname in groups['horizon']

Enable searchlight ui when searchlight enabled
Enable searchlight ui when searchlight enabled

Depends-On: Ie65c374dd319e38fe50fc3dca15c64d07edc8e1a
Change-Id: I9867f1b96b732b473fe043ab57e3338582f7dd9a
Closes-bug: #1646690
