{"id":45,"sha1":"bf3ce26252079dfdb0b9a5cec8754617a65fba06","playbook":{"id":2,"items":{"plays":7,"tasks":72,"results":71,"hosts":2,"files":97,"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-05T13:22:31.084267Z","ended":"2025-12-05T13:23:21.889555Z","duration":"00:00:50.805288","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.11","server_version":"1.7.4","status":"failed","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-hosts.yml","controller":"aio1.openstack.local","user":"root"},"content":"---\n# Copyright 2014, 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: Gather lxc hosts facts\n  hosts: \"{{ lxc_host_group | default('lxc_hosts') }}\"\n  gather_facts: \"{{ osa_gather_facts | default(true) }}\"\n  module_defaults:\n    ansible.builtin.setup:\n      gather_subset: \"{{ osa_gather_subset | default(lookup('ansible.builtin.env', 'ANSIBLE_GATHER_SUBSET', default='!all,min')) }}\"\n  tags:\n    - always\n\n- name: Basic lxc host setup\n  hosts: \"{{ lxc_host_group | default('lxc_hosts') }}\"\n  user: root\n  gather_facts: false\n  serial: \"{{ lxc_hosts_serial | default(['100%']) }}\"\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  tags:\n    - lxc-hosts\n  pre_tasks:\n    - name: Setup installation variables\n      ansible.builtin.include_role:\n        name: openstack.osa.install_defaults\n        defaults_from: \"{{ install_method }}\"\n        public: true\n\n    - name: Check the state of the default LXC service log directory\n      ansible.builtin.stat:\n        path: \"/var/log/lxc\"\n      register: _lxc_log_dir\n    - name: Create the log aggregation parent directory\n      ansible.builtin.file:\n        path: \"/openstack/log\"\n        state: directory\n        mode: \"0755\"\n    - name: Move the existing folder to the log aggregation parent\n      ansible.builtin.command: \"mv /var/log/lxc /openstack/log/{{ inventory_hostname }}-lxc\" # noqa: no-changed-when\n      when:\n        - _lxc_log_dir.stat.isdir is defined\n        - _lxc_log_dir.stat.isdir | bool\n    - name: Create the new LXC service log directory\n      ansible.builtin.file:\n        path: \"/openstack/log/{{ inventory_hostname }}-lxc\"\n        state: directory\n        mode: \"0755\"\n    - name: Create the LXC service log aggregation link\n      ansible.builtin.file:\n        src: \"/openstack/log/{{ inventory_hostname }}-lxc\"\n        dest: \"/var/log/lxc\"\n        state: \"link\"\n  roles:\n    - role: \"lxc_hosts\"\n","created":"2025-12-05T13:22:32.164407Z","updated":"2025-12-05T13:22:32.164420Z","path":"/etc/ansible/ansible_collections/openstack/osa/playbooks/containers_lxc_host.yml"}