Using this role with it's defaults to download 2.3 of AAP errors on task "Extract the name of the downloaded installer to aap_setup_down_installer_file".
TASK [infra.aap_utilities.aap_setup_download : Login to Red Hat APIs] *******************************************************************************************************************************************task path: /home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml:3
ok: [localhost] => {"cache_control": "no-store", "changed": false, "connection": "close", "content_length": "2843", "content_type": "application/json", "cookies": {"2a4bcc483fa585dc0ad94b51550d0923": "29cfadb8e39357a26336465455f54321"}, "cookies_string": "2a4bcc483fa585dc0ad94b51550d0923=29cfadb8e39357a26336465455f54321", "date": "Tue, 02 May 2023 23:01:19 GMT", "elapsed": 0, "json": {"access_token": "<token>", "expires_in": 900, "not-before-policy": 0, "refresh_expires_in": 0, "refresh_token": "<token>", "scope": "offline_access", "session_state": "bea77889-8ee7-4651-87e1-3d72e52b8cba", "token_type": "Bearer"}, "keep_alive": "timeout=300", "msg": "OK (2843 bytes)", "pragma": "no-cache", "redirected": false, "referrer_policy": "strict-origin", "set_cookie": "2a4bcc483fa585dc0ad94b51550d0923=29cfadb8e39357a26336465455f54321; path=/; HttpOnly; Secure; SameSite=None", "status": 200, "strict_transport_security": "max-age=31536000; includeSubDomains", "url": "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token", "x_content_type_options": "nosniff", "x_frame_options": "SAMEORIGIN", "x_rh_edge_cache_status": "Miss from child, Miss from parent", "x_rh_edge_reference_id": "0.8da96068.1683068479.2ba44f7c", "x_rh_edge_request_id": "2ba44f7c", "x_site": "prod-spoke-aws-us-east-1", "x_xss_protection": "1; mode=block"}
TASK [infra.aap_utilities.aap_setup_download : Collecting the available installers] *****************************************************************************************************************************task path: /home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml:14
ok: [localhost] => {"cache_control": "no-cache, no-store, max-age=0, must-revalidate", "changed": false, "connection": "close", "content": "{\"pagination\":{\"offset\":0,\"limit\":25,\"count\":5},\"body\":[{\"imageName\":\"Ansible Automation Platform 2.3 Setup\",\"filename\":\"ansible-automation-platform-setup-2.3-2.tar.gz\",\"arch\":\"x86_64\",\"datePublished\":\"2023-03-16T13:00:52.000Z\",\"checksum\":\"879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0\",\"downloadHref\":\"https://api.access.redhat.com/management/v1/images/879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0/download\"},{\"imageName\":\"Ansible Automation Platform 2.3 Setup Bundle\",\"filename\":\"ansible-automation-platform-setup-bundle-2.3-2.1.tar.gz\",\"arch\":\"x86_64\",\"datePublished\":\"2023-04-20T18:56:00.000Z\",\"checksum\":\"7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4\",\"downloadHref\":\"https://api.access.redhat.com/management/v1/images/7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4/download\"},{\"imageName\":\"Ansible Rulebook 0.9.4 (Dev Preview - Source Only)\",\"filename\":\"ansible-rulebook-0.9.4.tar.gz\",\"arch\":\"x86_64\",\"datePublished\":\"2022-12-13T17:08:53.000Z\",\"checksum\":\"9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469\",\"downloadHref\":\"https://api.access.redhat.com/management/v1/images/9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469/download\"},{\"imageName\":\"Ansible Validated Content\",\"filename\":\"ansible-validated-content-bundle-1.1.tar.gz\",\"arch\":\"x86_64\",\"datePublished\":\"2023-04-04T15:59:28.000Z\",\"checksum\":\"c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c\",\"downloadHref\":\"https://api.access.redhat.com/management/v1/images/c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c/download\"},{\"imageName\":\"Event Driven Automation 0.1.0 (Dev Preview - Source Only)\",\"filename\":\"eda-server-0.1.0.tar.gz\",\"arch\":\"x86_64\",\"datePublished\":\"2022-12-13T17:24:08.000Z\",\"checksum\":\"a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c\",\"downloadHref\":\"https://api.access.redhat.com/management/v1/images/a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c/download\"}]}", "content_length": "2016", "content_type": "application/json", "cookies": {"1a500012c7bab34b642b199769f73ca5": "c46dc096f21026f274a601be1a7565e3"}, "cookies_string": "1a500012c7bab34b642b199769f73ca5=c46dc096f21026f274a601be1a7565e3", "date": "Tue, 02 May 2023 23:01:21 GMT", "elapsed": 1, "expires": "0", "json": {"body": [{"arch": "x86_64", "checksum": "879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0", "datePublished": "2023-03-16T13:00:52.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0/download", "filename": "ansible-automation-platform-setup-2.3-2.tar.gz", "imageName": "Ansible Automation Platform 2.3 Setup"}, {"arch": "x86_64", "checksum": "7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4", "datePublished": "2023-04-20T18:56:00.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4/download", "filename": "ansible-automation-platform-setup-bundle-2.3-2.1.tar.gz", "imageName": "Ansible Automation Platform 2.3 Setup Bundle"}, {"arch": "x86_64", "checksum": "9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469", "datePublished": "2022-12-13T17:08:53.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469/download", "filename": "ansible-rulebook-0.9.4.tar.gz", "imageName": "Ansible Rulebook 0.9.4 (Dev Preview - Source Only)"}, {"arch": "x86_64", "checksum": "c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c", "datePublished": "2023-04-04T15:59:28.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c/download", "filename": "ansible-validated-content-bundle-1.1.tar.gz", "imageName": "Ansible Validated Content"}, {"arch": "x86_64", "checksum": "a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c", "datePublished": "2022-12-13T17:24:08.000Z", "downloadHref":
"https://api.access.redhat.com/management/v1/images/a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c/download", "filename": "eda-server-0.1.0.tar.gz", "imageName": "Event Driven Automation 0.1.0 (Dev Preview - Source Only)"}], "pagination": {"count": 5, "limit": 25, "offset": 0}}, "msg": "OK (2016 bytes)", "pragma": "no-cache", "redirected": false, "referrer_policy": "no-referrer", "set_cookie": "1a500012c7bab34b642b199769f73ca5=c46dc096f21026f274a601be1a7565e3; path=/; HttpOnly; Secure; SameSite=None", "status": 200, "strict_transport_security": "max-age=31536000 ; includeSubDomains", "traceparent": "00-c34091c1c4a26e674674c696cc68d80d-5c6fdee870cd3e1c-01", "url": "https://api.access.redhat.com/management/v1/images/cset/ansible-automation-platform-2.3-for-rhel-9-x86_64-files", "vary": "Origin", "x_content_type_options": "nosniff", "x_frame_options": "DENY", "x_xss_protection": "1 ; mode=block"}
TASK [infra.aap_utilities.aap_setup_download : Simplify the list of possible downloads] *************************************************************************************************************************task path: /home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml:23
ok: [localhost] => {"ansible_facts": {"__aap_setup_down_images": [{"arch": "x86_64", "checksum": "7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4", "datePublished": "2023-04-20T18:56:00.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4/download", "filename": "ansible-automation-platform-setup-bundle-2.3-2.1.tar.gz", "imageName": "Ansible Automation Platform 2.3 Setup Bundle"}, {"arch": "x86_64", "checksum": "c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c", "datePublished": "2023-04-04T15:59:28.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c/download", "filename": "ansible-validated-content-bundle-1.1.tar.gz", "imageName": "Ansible Validated Content"}, {"arch": "x86_64", "checksum": "879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0", "datePublished": "2023-03-16T13:00:52.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/879e97e4c63de3727657284eb05a3a9e9897c66bd5059183d804d20f579c75a0/download", "filename": "ansible-automation-platform-setup-2.3-2.tar.gz", "imageName": "Ansible Automation Platform 2.3 Setup"}, {"arch": "x86_64", "checksum": "a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c", "datePublished": "2022-12-13T17:24:08.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/a414482ab3cce6d2f6932daff4362cb5bfe18271425d3c16217020886fb0d02c/download", "filename": "eda-server-0.1.0.tar.gz", "imageName": "Event Driven Automation 0.1.0 (Dev Preview - Source Only)"}, {"arch": "x86_64", "checksum": "9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469", "datePublished": "2022-12-13T17:08:53.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/9c75400190475a0beced9f8319123e9725b84a295f0fc8b2b2d03f8d83cb4469/download", "filename": "ansible-rulebook-0.9.4.tar.gz", "imageName": "Ansible Rulebook 0.9.4 (Dev Preview - Source Only)"}]}, "changed": false}
TASK [infra.aap_utilities.aap_setup_download : Downloading the latest installer of type setup] ******************************************************************************************************************task path: /home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml:27
skipping: [localhost] => (item={'imageName': 'Ansible Automation Platform 2.3 Setup Bundle', 'filename': 'ansible-automation-platform-setup-bundle-2.3-2.1.tar.gz', 'arch': 'x86_64', 'datePublished': '2023-04-20T18:56:00.000Z', 'checksum': '7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4', 'downloadHref': 'https://api.access.redhat.com/management/v1/images/7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4/download'}) => {"ansible_loop_var": "item", "changed": false, "item": {"arch": "x86_64", "checksum": "7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4", "datePublished":
"2023-04-20T18:56:00.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/7456b98f2f50e0e1d4c93fb4e375fe8a9174f397a5b1c0950915224f7f020ec4/download", "filename": "ansible-automation-platform-setup-bundle-2.3-2.1.tar.gz", "imageName": "Ansible Automation Platform 2.3 Setup Bundle"}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'imageName': 'Ansible Validated Content', 'filename': 'ansible-validated-content-bundle-1.1.tar.gz', 'arch': 'x86_64', 'datePublished': '2023-04-04T15:59:28.000Z', 'checksum': 'c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c', 'downloadHref': 'https://api.access.redhat.com/management/v1/images/c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c/download'}) => {"ansible_loop_var": "item", "changed": false, "item": {"arch": "x86_64", "checksum": "c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c", "datePublished": "2023-04-04T15:59:28.000Z", "downloadHref": "https://api.access.redhat.com/management/v1/images/c0d2eb18e7a87c77f5660b41ce8dc85e5e64841e95986a553ae90edecdc30f0c/download", "filename": "ansible-validated-content-bundle-1.1.tar.gz", "imageName": "Ansible Validated Content"}, "skip_reason": "Conditional result was False"}
TASK [infra.aap_utilities.aap_setup_download : Extract the name of the downloaded installer to aap_setup_down_installer_file] ***********************************************************************************task path: /home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml:38
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in '/home/user/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_download/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Extract the name of the downloaded installer to aap_setup_down_installer_file\n ^ here\n"}