{"id":124,"sha1":"b7598dd0b8e5b84fdd4be58c80625597166e5611","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: Ensure the lxc dnsmasq user exists\n  ansible.builtin.user:\n    name: \"{{ lxc_net_dnsmasq_user }}\"\n    comment: \"LXC dnsmasq\"\n    system: \"yes\"\n    shell: \"/bin/false\"\n    home: \"/var/lib/lxc\"\n  tags:\n    - lxc-dnsmasq-user\n\n- name: Drop base config file(s)\n  ansible.builtin.template:\n    src: \"{{ item.src }}\"\n    dest: \"{{ item.dest }}\"\n    owner: \"{{ item.owner | default('root') }}\"\n    group: \"{{ item.group | default('root') }}\"\n    mode: \"{{ item.mode | default('0644') }}\"\n  with_items:\n    - { src: lxc-openstack.conf.j2, dest: \"/etc/lxc/lxc-openstack.conf\" }\n    - { src: lxc-net.default.j2, dest: \"{{ system_config_dir }}/lxc-net\", mode: \"0644\" }\n    - { src: lxc.default.j2, dest: \"{{ system_config_dir }}/lxc\", mode: \"0644\" }\n    - { src: lxc-openstack-common.conf.j2, dest: \"/usr/share/lxc/config/common.conf.d/80-openstack-common.conf\" }\n    - { src: lxc-system-manage.j2, dest: \"/usr/local/bin/lxc-system-manage\", mode: \"0755\" }\n    - { src: systemd-overrides.conf.j2, dest: \"/etc/systemd/system.conf.d/osa-lxc-hosts.conf\" }\n  notify:\n    - Reload systemd units\n  tags:\n    - lxc-files\n    - lxc-config\n\n- name: Drop lxc veth check script\n  ansible.builtin.copy:\n    src: \"lxc-veth-check.sh\"\n    dest: \"/usr/local/bin/lxc-veth-check\"\n    owner: \"root\"\n    group: \"root\"\n    mode: \"0755\"\n  tags:\n    - lxc-files\n    - lxc-config\n\n# NOTE: Remove this task after 2025.1\n- name: Remove DefaultTasksMax value from default config\n  ansible.builtin.lineinfile:\n    dest: /etc/systemd/system.conf\n    state: absent\n    regexp: \"^.*DefaultTasksMax.*$\"\n    line: \"DefaultTasksMax={{ lxc_default_tasks_max }}\"\n  when:\n    - ansible_facts['service_mgr'] == 'systemd'\n  notify:\n    - Reload systemd units\n  tags:\n    - lxc-config\n\n- name: Set sshd MaxSessions\n  ansible.builtin.lineinfile:\n    dest: /etc/ssh/sshd_config\n    state: present\n    regexp: \"^#?MaxSessions.*$\"\n    line: \"MaxSessions 50\"\n  notify:\n    - Restart sshd\n  tags:\n    - lxc-config\n\n- name: Tuning kernel for lxc\n  ansible.posix.sysctl:\n    name: \"{{ item.key }}\"\n    value: \"{{ item.value }}\"\n    sysctl_set: \"{{ item.set | default('yes') }}\"\n    sysctl_file: \"{{ lxc_sysctl_file }}\"\n    state: \"{{ item.state | default('present') }}\"\n    reload: \"{{ item.reload | default('yes') }}\"\n  failed_when: false\n  with_items: \"{{ lxc_kernel_options }}\"\n","created":"2025-12-14T10:07:34.372376Z","updated":"2025-12-14T10:07:34.372388Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-lxc_hosts/tasks/lxc_post_install.yml"}