{"id":226,"sha1":"c2ee4ccc8806254e6d7db67a1ac961ba60c2e4be","playbook":{"id":3,"items":{"plays":37,"tasks":567,"results":554,"hosts":7,"files":221,"records":0},"arguments":{"version":null,"verbosity":0,"private_key_file":null,"remote_user":null,"connection":"openstack.osa.ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":true,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/zuul/src/opendev.org/openstack/openstack-ansible/inventory/dynamic_inventory.py","/home/zuul/src/opendev.org/openstack/openstack-ansible/inventory/inventory.ini","/etc/openstack_deploy/inventory.ini"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":4,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["setup-infrastructure.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-14T10:15:01.440414Z","ended":"2025-12-14T10:21:34.655502Z","duration":"00:06:33.215088","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.13.5","server_version":"1.7.4","status":"completed","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-infrastructure.yml","controller":"aio1.openstack.local","user":"root"},"content":"---\n# Copyright 2024, Cleura AB\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n- name: Ensure that at least one vhost is defined\n  ansible.builtin.assert:\n    that:\n      - httpd_vhosts | length > 0\n      - httpd_vhosts | selectattr('name', 'undefined') | length == 0\n    success_msg: vhosts are defined properly\n    fail_msg: >-\n      At least one vhost must be defined in `httpd_vhosts`.\n      Each vhost must contain at least `name` key.\n\n- name: Gather variables for each operating system\n  ansible.builtin.include_vars: \"{{ lookup('first_found', params) }}\"\n  vars:\n    params:\n      files:\n        - \"{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['distribution'] | lower }}.yml\"\n        - \"{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_version'].split('.')[0] }}.yml\"\n        - \"{{ ansible_facts['os_family'] | lower }}.yml\"\n      paths:\n        - \"{{ role_path }}/vars\"\n  tags:\n    - always\n\n- name: Importing httpd_pre_install tasks\n  ansible.builtin.import_tasks:\n    file: httpd_pre_install.yml\n  tags:\n    - httpd-install\n\n- name: Install distro packages\n  ansible.builtin.package:\n    name: \"{{ (httpd_distro_packages + httpd_extra_packages) | reject('equalto', '') | list }}\"\n    state: \"{{ httpd_package_state }}\"\n    update_cache: \"{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('yes', omit) }}\"\n    cache_valid_time: \"{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary(cache_timeout, omit) }}\"\n  register: install_packages\n  until: install_packages is success\n  retries: 5\n  delay: 5\n  notify:\n    - Restart web server\n  tags:\n    - httpd-install\n\n- name: Importing httpd_post_install tasks\n  ansible.builtin.import_tasks:\n    file: httpd_post_install.yml\n  tags:\n    - httpd-config\n\n- name: Importing httpd_configure_vhosts tasks\n  ansible.builtin.import_tasks:\n    file: httpd_configure_vhosts.yml\n  tags:\n    - httpd-config\n    - httpd-vhosts\n\n- name: Flush handlers\n  ansible.builtin.meta: flush_handlers\n","created":"2025-12-14T10:15:03.719770Z","updated":"2025-12-14T10:15:03.719782Z","path":"/home/zuul/src/opendev.org/openstack/ansible-role-httpd/tasks/main.yml"}