{"id":4,"sha1":"a0db1e759c1e6b0c22a48cd14a055c9775606ca3","playbook":{"id":1,"items":{"plays":1,"tasks":156,"results":156,"hosts":1,"files":23,"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/tests/test-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":10,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["bootstrap-aio.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-05T13:21:24.276345Z","ended":"2025-12-05T13:22:19.245869Z","duration":"00:00:54.969524","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.11","server_version":"1.7.4","status":"completed","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/tests/bootstrap-aio.yml","controller":"np6cc01eb996274","user":"root"},"content":"---\n# Copyright 2015, Rackspace US, Inc.\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# Identify AIO builds in the git user-agent\n- name: Include prepare_git_useragent tasks\n  ansible.builtin.include_tasks: prepare_git_useragent.yml\n\n# Attempt data device detection if enabled\n- name: Include detect_data_disk_device tasks\n  ansible.builtin.include_tasks: detect_data_disk_device.yml\n  when:\n    - bootstrap_host_data_disk_device is none\n    - bootstrap_host_data_disk_device_detect | bool\n\n# Before we do anything, check the minimum requirements\n- name: Import check-requirements tasks\n  ansible.builtin.import_tasks: check-requirements.yml\n  tags:\n    - check-requirements\n\n# We will look for the most specific variable files first and eventually\n# end up with the least-specific files.\n- name: Gather variables for each operating system\n  ansible.builtin.include_vars: \"{{ item }}\"\n  with_first_found:\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 }}.yml\"\n  tags:\n    - always\n\n- name: Gather nodepool variables\n  ansible.builtin.import_tasks: gather_nodepool_vars.yml\n  tags:\n    - always\n\n- name: Create the required directories\n  ansible.builtin.file:\n    path: \"{{ item }}\"\n    state: directory\n    mode: \"0755\"\n  with_items:\n    - \"/openstack\"\n  tags:\n    - create-directories\n\n- name: Import install_packages tasks\n  ansible.builtin.import_tasks: install_packages.yml\n  tags:\n    - install-packages\n\n# Prepare the data disk, if one is provided\n- name: Include prepare_data_disk tasks\n  ansible.builtin.include_tasks: prepare_data_disk.yml\n  when:\n    - bootstrap_host_data_disk_device != None\n  args:\n    apply:\n      tags:\n        - prepare-data-disk\n  tags:\n    - always\n\n# Symlink host repos to /openstack/src to match the lxc continer bind mount\n# NOTE(jrosser) this must happen *after* prepare_data_disk as /openstack may remounted\n- name: Use on-disk repos for openstack services in CI\n  block:\n    - name: Symlink /openstack/src to /home/zuul/src\n      ansible.builtin.file:\n        src: \"{{ lookup('env', 'ZUUL_SRC_PATH') }}\"\n        dest: '/openstack/src'\n        state: link\n\n    - name: Create override for zuul git server to local repos\n      ansible.builtin.copy:\n        content: |\n          openstack_opendev_base_url: \"file:///openstack/src/opendev.org\"\n        dest: \"/etc/openstack_deploy/user_variables_zuulrepos.yml\"\n        mode: \"0644\"\n\n  when:\n    - \"lookup('env', 'ZUUL_SRC_PATH') | length > 0\"\n\n- name: Import prepare_loopback tasks\n  ansible.builtin.import_tasks: prepare_loopback.yml\n  tags:\n    - prepare-loopback\n\n# Prepare the zfs storage loopback disk\n- name: Include prepare_zfs tasks\n  ansible.builtin.include_tasks: prepare_zfs.yml\n  when:\n    - bootstrap_host_loopback_zfs | bool\n    - bootstrap_host_data_disk_device == None\n    - _lxc_container_backing_store == 'zfs'\n  args:\n    apply:\n      tags:\n        - prepare-loopback\n  tags:\n    - always\n\n# Prepare the NFS server and loopback disks\n- name: Include prepare_nfs tasks\n  ansible.builtin.include_tasks: prepare_nfs.yml\n  when:\n    - bootstrap_host_nfs | bool\n  args:\n    apply:\n      tags:\n        - prepare-nfs\n  tags:\n    - always\n\n# Ensure hostname/ip is consistent with inventory\n- name: Import prepare_hostname tasks\n  ansible.builtin.import_tasks: prepare_hostname.yml\n  tags:\n    - prepare-hostname\n\n# Prepare the network interfaces\n- name: Import prepare_networking tasks\n  ansible.builtin.include_tasks: prepare_networking.yml\n  args:\n    apply:\n      tags:\n        - prepare-networking\n  when:\n    - ansible_facts['os_family'] == 'RedHat'\n  tags:\n    - prepare-networking\n\n# Ensure that there are both private and public ssh keys for root\n- name: Import prepare_ssh_keys tasks\n  ansible.builtin.import_tasks: prepare_ssh_keys.yml\n  tags:\n    - prepare-ssh-keys\n\n# Prepare local squid proxy\n- name: Include prepare_squid tasks\n  ansible.builtin.include_tasks: prepare_squid.yml\n  when:\n    - \"'proxy' in bootstrap_host_scenarios_expanded\"\n  args:\n    apply:\n      tags:\n        - prepare-squid\n  tags:\n    - always\n\n# Prepare local step-ca certificate authority\n- name: Include prepare_step_ca tasks\n  ansible.builtin.include_tasks: prepare_step_ca.yml\n  when:\n    - \"'stepca' in bootstrap_host_scenarios_expanded\"\n  args:\n    apply:\n      tags:\n        - prepare-step-ca\n  tags:\n    - always\n\n# Put the OpenStack-Ansible configuration for an All-In-One on the host\n- name: Include prepare_aio_config tasks\n  ansible.builtin.include_tasks: prepare_aio_config.yml\n  when:\n    - bootstrap_host_aio_config | bool\n  args:\n    apply:\n      tags:\n        - prepare-aio-config\n  tags:\n    - always\n","created":"2025-12-05T13:21:24.496033Z","updated":"2025-12-05T13:21:24.496045Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/tests/roles/bootstrap-host/tasks/main.yml"}