{"id":229,"sha1":"d7fca139b91fcb93c89b672e6ae1a8cdeee2c8fc","playbook":{"id":3,"items":{"plays":37,"tasks":374,"results":364,"hosts":2,"files":208,"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":8,"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-08T13:33:24.432723Z","ended":"2025-12-08T13:39:38.483304Z","duration":"00:06:14.050581","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.3","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 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: Download the RabbitMQ package\n  ansible.builtin.get_url:\n    url: \"{{ rabbitmq_package_url }}\"\n    dest: \"{{ rabbitmq_package_path }}\"\n    mode: \"0644\"\n    checksum: \"sha256:{{ rabbitmq_package_sha256 }}\"\n  register: package_download\n  retries: 3\n  delay: 10\n  until: package_download is success\n  when: rabbitmq_install_method == 'file'\n  tags:\n    - rabbitmq-package-deb\n    - rabbitmq-package-deb-get\n    - rabbitmq-package-rpm\n    - rabbitmq-package-rpm-get\n\n- name: Manage /etc/hosts files\n  block:\n    - name: Fail if hosts file is not managed yet\n      ansible.builtin.command: grep \"OPENSTACK-ANSIBLE MANAGED BLOCK\" /etc/hosts\n      changed_when: false\n  rescue:\n    - name: Rescue failure and add required records\n      ansible.builtin.lineinfile:\n        dest: /etc/hosts\n        state: present\n        line: \"{{ item.address }} {{ item.hostnames | join(' ') }}\"\n      with_items: \"{{ rabbitmq_hosts_entries }}\"\n  always:\n    - name: Ensure localhost /etc/hosts entry is correct\n      ansible.builtin.lineinfile:\n        dest: /etc/hosts\n        state: present\n        line: \"127.0.0.1 localhost\"\n        regexp: \"^127\\\\.0\\\\.0\\\\.1\"\n    - name: Remove hostname record for 127.0.1.1\n      ansible.builtin.replace:\n        path: /etc/hosts\n        regexp: '^(127\\.0\\.1\\.1)\\s*(\\S*)\\s*({{ ansible_facts[\"hostname\"] }})($|\\s.*)'\n        replace: \"\\\\1 \\\\2 \\\\4\"\n  when:\n    - rabbitmq_manage_hosts_entries | bool\n  tags:\n    - rabbitmq-config\n\n- name: Create the system group\n  ansible.builtin.group:\n    name: \"{{ rabbit_system_group_name }}\"\n    state: \"present\"\n    system: \"yes\"\n\n- name: Create the rabbit system user\n  ansible.builtin.user:\n    name: \"{{ rabbit_system_user_name }}\"\n    group: \"{{ rabbit_system_group_name }}\"\n    comment: \"RabbitMQ messaging server\"\n    shell: \"/bin/false\"\n    system: \"yes\"\n    createhome: \"yes\"\n    home: \"/var/lib/rabbitmq\"\n\n- name: Create the local directories\n  ansible.builtin.file:\n    path: \"/etc/rabbitmq/\"\n    state: \"directory\"\n    owner: \"root\"\n    group: \"{{ rabbit_system_group_name }}\"\n    mode: \"0755\"\n  tags:\n    - rabbitmq-config\n","created":"2025-12-08T13:33:28.546015Z","updated":"2025-12-08T13:33:28.546044Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-rabbitmq_server/tasks/rabbitmq_pre_install.yml"}