Execution
Date 15 Dec 2025 09:55:36 +0000
Duration 00:21:13.46
Controller aio1.openstack.local
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.12.3
Summary
15 Hosts
924 Tasks
1203 Results
46 Plays
212 Files
0 Records

File: /home/zuul/src/opendev.org/openstack/openstack-ansible-repo_server/tasks/repo_install.yml

---
# Copyright 2016, Rackspace US, Inc.
#
# 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: Install distro packages
  ansible.builtin.package:
    name: "{{ repo_server_distro_packages | reject('equalto', '') | list }}"
    state: "{{ repo_server_package_state }}"
    update_cache: "{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('yes', omit) }}"
    cache_valid_time: "{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary(cache_timeout, omit) }}"
  register: install_packages
  until: install_packages is success
  retries: 5
  delay: 5

- name: Including HTTPD role
  ansible.builtin.import_role:
    name: httpd
  vars:
    httpd_service_user_name: "{{ repo_service_user_name }}"
    httpd_service_group_name: "{{ repo_service_group_name }}"
    httpd_pki_dir: "{{ repo_pki_dir }}"
    httpd_pki_setup_host: "{{ repo_pki_setup_host }}"
    httpd_ssl_protocol: "{{ repo_ssl_protocol }}"
    httpd_ssl_cipher_suite_tls12: "{{ repo_ssl_cipher_suite_tls12 }}"
    httpd_ssl_cipher_suite_tls13: "{{ repo_ssl_cipher_suite_tls13 }}"
    httpd_pki_regen_cert: "{{ repo_pki_regen_cert }}"
    httpd_vhosts:
      - name: openstack_slushee
        address: "{{ repo_server_bind_address }}"
        port: "{{ repo_server_port }}"
        log_level: "{{ repo_apache_log_level }}"
        document_root: "{{ repo_server_directory_root }}"
        server_name: "{{ repo_server_name }}"
        headers:
          - 'Header set X-WHOAMI "OpenStack Private Slushee Repository {{ inventory_hostname }}"'
        directories:
          - path: "{{ repo_server_directory_root }}"
            options:
              - Options +FollowSymlinks +Indexes
              - AllowOverride None
              - AddOutputFilterByType DEFLATE application/json
              - AddOutputFilterByType DEFLATE text/javascript
              - AddOutputFilterByType DEFLATE text/plain
              - AddOutputFilterByType DEFLATE text/xml
        ssl: "{{ repo_backend_ssl | ternary(_repo_httpd_vhost_ssl, false) }}"
  tags:
    - repo_server-install
    - repo_server-config
    - httpd