{"id":132,"sha1":"1eea017f4c7345ee3d55df43f4d6c5b38802dc7c","playbook":{"id":2,"items":{"plays":18,"tasks":603,"results":2357,"hosts":15,"files":157,"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-hosts.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-14T10:04:43.190296Z","ended":"2025-12-14T10:14:53.851603Z","duration":"00:10:10.661307","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-hosts.yml","controller":"aio1.openstack.local","user":"root"},"content":"---\n# Copyright 2016, 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- name: Create LXC cache dir\n  ansible.builtin.file:\n    path: \"{{ cache_path_fact }}\"\n    state: \"directory\"\n    recurse: true\n\n- name: Remove existing cache archive\n  ansible.builtin.file:\n    path: \"{{ cache_path_fact }}/rootfs.tar.xz\"\n    state: \"absent\"\n\n# This is using a shell command because the ansible archive module does not\n# provide for the options needed to properly create an LXC image archive.\n- name: Create lxc image\n  ansible.builtin.shell: |\n    tar -Opc -C {{ lxc_image_cache_path }} . | {{ lxc_xz_bin }} -T 0 -{{ lxc_image_compression_ratio }} -c - > rootfs.tar.xz\n  args:\n    chdir: \"{{ cache_path_fact }}/\"\n  tags:\n    - skip_ansible_lint\n\n- name: Drop container meta-data\n  ansible.builtin.template:\n    src: \"meta-data/{{ item }}\"\n    dest: \"{{ cache_path_fact }}/{{ item }}\"\n    owner: \"root\"\n    group: \"root\"\n    mode: \"0644\"\n  with_items:\n    - config\n    - config.5\n    - create-message\n    - expiry\n    - templates\n\n- name: Set expiry\n  ansible.builtin.copy:\n    content: \"{{ cache_time | int + lxc_image_cache_expiration | community.general.to_seconds | int }}\"\n    dest: \"{{ cache_path_fact }}/expiry\"\n    mode: \"0644\"\n\n- name: Set build ID\n  ansible.builtin.copy:\n    content: \"{{ cache_time | int }}\"\n    dest: \"{{ cache_path_fact }}/build_id\"\n    mode: \"0644\"\n\n- name: Create base container to use for containers with {{ lxc_container_backing_store }}\n  community.general.lxc_container:\n    name: \"{{ lxc_container_base_name }}\"\n    template: \"download\"\n    state: stopped\n    backing_store: \"{{ (lxc_container_backing_store == 'overlayfs') | ternary('dir', lxc_container_backing_store) }}\"\n    zfs_root: \"{{ (lxc_container_backing_store == 'zfs') | ternary(lxc_container_zfs_root_name, omit) }}\"\n    template_options: \"{{ lxc_cache_download_template_options }}\"\n  register: cache_download\n  retries: 3\n  delay: 10\n  until: cache_download is success\n\n- name: Set the qgroup limits for btrfs\n  when:\n    - lxc_container_backing_store == 'btrfs'\n  block:\n    - name: Set the qgroup size|compression limits on machines\n      ansible.builtin.command: \"btrfs qgroup limit {{ item }} /var/lib/lxc/{{ lxc_container_base_name }}\"\n      changed_when: false\n      with_items:\n        - \"-e {{ lxc_host_machine_qgroup_space_limit }}\"\n        - \"-c {{ lxc_host_machine_qgroup_compression_limit }}\"\n      when:\n        - not lxc_host_machine_quota_disabled\n  rescue:\n    - name: Notice regarding quota system\n      ansible.builtin.debug:\n        msg: >-\n          There was an error processing the setup of qgroups. Check the system\n          to ensure they're available otherwise disable the quota system by\n          setting `lxc_host_machine_quota_disabled` to true.\n","created":"2025-12-14T10:08:51.868213Z","updated":"2025-12-14T10:08:51.868225Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-lxc_hosts/tasks/lxc_cache_create.yml"}