---
- name: default images
  action: |
    glance_image
      name={{ item.name }}
      copy_from={{ item.url }}
      container_format=bare
      disk_format=qcow2
      auth_url=http://{{ endpoints.main }}:5000/v2.0/
      login_tenant_name=admin
      login_password={{ secrets.admin_password }}
      timeout=12000
      {% if client.self_signed_cert -%}
      cacert=/opt/stack/ssl/openstack.crt
      {% endif -%}
  with_items: glance.images

---
- name: default images
  action: |
    glance_image
      name={{ item.name }}
      copy_from={{ item.url }}
      container_format=bare
      disk_format=qcow2
      auth_url=https://{{ endpoints.main }}:5001/v2.0/
      login_tenant_name=admin
      login_password={{ secrets.admin_password }}
      timeout=12000
      {% if client.self_signed_cert -%}
      cacert=/opt/stack/ssl/openstack.crt
      {% endif -%}
  with_items: glance.images

Make sure that we use the external endpoint
Make sure that we use the external endpoint

This needs to be https and 5001.
