ansible-playbook [core 2.17.12] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-99Q executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, May 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Run the role with default parameters] ************************************ task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 Saturday 24 May 2025 15:19:53 -0400 (0:00:00.017) 0:00:00.017 ********** included: fedora.linux_system_roles.rhc for managed-node1 TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 24 May 2025 15:19:53 -0400 (0:00:00.017) 0:00:00.035 ********** included: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.rhc : Ensure ansible_facts used by role] ******* task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 24 May 2025 15:19:53 -0400 (0:00:00.014) 0:00:00.049 ********** [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 24 May 2025 15:19:55 -0400 (0:00:02.103) 0:00:02.152 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 24 May 2025 15:19:55 -0400 (0:00:00.472) 0:00:02.624 ********** ok: [managed-node1] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 24 May 2025 15:19:55 -0400 (0:00:00.022) 0:00:02.646 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 24 May 2025 15:19:55 -0400 (0:00:00.011) 0:00:02.657 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 24 May 2025 15:19:55 -0400 (0:00:00.010) 0:00:02.668 ********** included: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml for managed-node1 TASK [fedora.linux_system_roles.rhc : Ensure required packages are installed] *** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 24 May 2025 15:19:56 -0400 (0:00:00.042) 0:00:02.710 ********** fatal: [managed-node1]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried TASK [Assert that the role failed with missing credentials] ******************** task path: /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 Saturday 24 May 2025 15:20:01 -0400 (0:00:05.298) 0:00:08.009 ********** fatal: [managed-node1]: FAILED! => { "assertion": "'state is present but any of the following are missing' in ansible_failed_result.msg", "changed": false, "evaluated_to": false } MSG: Assertion failed PLAY RECAP ********************************************************************* managed-node1 : ok=6 changed=0 unreachable=0 failed=1 skipped=2 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-24T19:20:01.335345+00:00Z", "host": "managed-node1", "message": "Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "start_time": "2025-05-24T19:19:56.038838+00:00Z", "task_name": "Ensure required packages are installed", "task_path": "/tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3" }, { "ansible_version": "2.17.12", "end_time": "2025-05-24T19:20:01.350959+00:00Z", "host": "managed-node1", "message": "Assertion failed", "start_time": "2025-05-24T19:20:01.337951+00:00Z", "task_name": "Assert that the role failed with missing credentials", "task_path": "/tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 15:20:01 -0400 (0:00:00.014) 0:00:08.024 ********** =============================================================================== fedora.linux_system_roles.rhc : Ensure required packages are installed --- 5.30s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 fedora.linux_system_roles.rhc : Ensure ansible_facts used by role ------- 2.10s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 fedora.linux_system_roles.rhc : Check if system is ostree --------------- 0.47s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 fedora.linux_system_roles.rhc : Handle system subscription -------------- 0.04s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 fedora.linux_system_roles.rhc : Set flag to indicate system is ostree --- 0.02s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Run the role with default parameters ------------------------------------ 0.02s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 Assert that the role failed with missing credentials -------------------- 0.01s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 fedora.linux_system_roles.rhc : Set ansible_facts required by role ------ 0.01s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 fedora.linux_system_roles.rhc : Check if insights-packages are installed --- 0.01s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 fedora.linux_system_roles.rhc : Handle insights unregistration ---------- 0.01s /tmp/collections-99Q/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6