{"id":33,"sha1":"cb3601ac93f6aee47b679f5e3dbaa8cd17585180","playbook":{"id":2,"items":{"plays":18,"tasks":316,"results":313,"hosts":2,"files":136,"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-hosts.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-08T13:27:39.675908Z","ended":"2025-12-08T13:33:13.621332Z","duration":"00:05:33.945424","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-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# NOTE(mhayden): CentOS always has python (because of yum), but it's possible\n# that Ubuntu nodes may not have python by default. Ansible doesn't work very\n# well if Python isn't installed.\n#\n# Also, we can't use a 'when' to check for the ansible_facts['pkg_mgr'] here because\n# we haven't gathered facts yet.\n- name: Install Ansible prerequisites\n  hosts: \"{{ openstack_host_group|default('hosts') }}\"\n  gather_facts: false\n  user: root\n  pre_tasks:\n    - name: Ensure python is installed\n      register: result\n      ansible.builtin.raw: |\n        if which apt-get >/dev/null && ! which python >/dev/null ; then\n          if ! which python3 >/dev/null ; then\n            apt-get -y install python3\n          fi\n          update-alternatives --install /usr/bin/python python /usr/bin/python3 10\n          exit 2\n        else\n          exit 0\n        fi\n      changed_when: \"result.rc == 2\"\n      failed_when: \"result.rc not in [0, 2]\"\n\n- name: Gather host facts\n  hosts: \"{{ openstack_host_group | default('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 host setup\n  hosts: \"{{ openstack_host_group|default('hosts') }}\"\n  gather_facts: false\n  user: root\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 for a supported Operating System\n      ansible.builtin.include_role:\n        name: openstack.osa.platform_check\n  roles:\n    - role: \"openstack_hosts\"\n  post_tasks:\n    - name: Ensure deploy host SSH connection is reset\n      ansible.builtin.meta: reset_connection\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  tags:\n    - openstack-hosts\n","created":"2025-12-08T13:27:40.339609Z","updated":"2025-12-08T13:27:40.339637Z","path":"/etc/ansible/ansible_collections/openstack/osa/playbooks/openstack_hosts_setup.yml"}