Execution
Date 08 Dec 2025 13:57:07 +0000
Duration 00:24:46.17
Controller aio1.openstack.local
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.12.11
Summary
12 Hosts
1505 Tasks
1497 Results
32 Plays
487 Files
0 Records

File: /home/zuul/src/opendev.org/openstack/openstack-ansible-os_skyline/tasks/skyline_apache.yml

---
# Copyright 2024, Cleura AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Including HTTPD role
  ansible.builtin.import_role:
    name: httpd
  vars:
    httpd_pki_dir: "{{ skyline_pki_dir }}"
    httpd_pki_setup_host: "{{ skyline_pki_setup_host }}"
    httpd_ssl_protocol: "{{ skyline_ssl_protocol }}"
    httpd_ssl_cipher_suite_tls12: "{{ skyline_ssl_cipher_suite_tls12 }}"
    httpd_ssl_cipher_suite_tls13: "{{ skyline_ssl_cipher_suite_tls13 }}"
    httpd_pki_regen_cert: "{{ skyline_pki_regen_cert }}"
    httpd_extra_modules:
      - name: "proxy_http"
        state: "present"
    httpd_vhosts:
      - name: skyline
        address: "{{ skyline_bind_address }}"
        port: "{{ skyline_service_port }}"
        document_root: "{{ skyline_lib_static_files }}"
        server_name: "{{ skyline_server_name }}"
        directories:
          - path: "{{ skyline_lib_static_files }}"
            options:
              - '<FilesMatch "\.(html|css|js|jpg|jpeg|png|gif|ico|svg|eot|otf|woff|woff2|ttf)$">'
              - '  Header set Cache-Control "max-age=86400, public"'
              - </FilesMatch>
              - RewriteEngine On
              - RewriteCond %{REQUEST_URI} !^/index.html$
              - RewriteCond %{REQUEST_FILENAME} !-f
              - RewriteCond %{REQUEST_FILENAME} !-d
              - RewriteCond %{REQUEST_URI} !\.(html|css|js|jpg|jpeg|png|gif|ico|svg|eot|otf|woff|woff2|ttf)$ [NC]
              - RewriteRule . /index.html [L]
              - Require all granted
        locations: "{{ _skyline_default_locations + _skyline_service_locations }}"
        options: >-
          {{
            ('https' in _endpoint_list.stdout | from_yaml | map(attribute='URL') | map('urlsplit') | map(attribute='scheme')) | ternary(
              _skyline_proxy_ssl_options | select(), []
            )
          }}
        ssl: "{{ skyline_backend_ssl | ternary(_skyline_httpd_vhost_ssl, false) }}"