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-k1K 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_certificate_external.yml *************************************** 1 plays in /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml PLAY [Test with generated self-signed certmonger certificate] ****************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:2 Saturday 24 May 2025 08:40:19 -0400 (0:00:00.018) 0:00:00.018 ********** [WARNING]: Platform linux on host managed-node2 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-node2] TASK [Include role] ************************************************************ task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:10 Saturday 24 May 2025 08:40:22 -0400 (0:00:02.266) 0:00:02.285 ********** included: fedora.linux_system_roles.cockpit for managed-node2 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:2 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.052) 0:00:02.338 ********** included: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.023) 0:00:02.361 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "__cockpit_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Run systemctl] *********************** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:10 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.033) 0:00:02.394 ********** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.009166", "end": "2025-05-24 08:40:22.663822", "failed_when_result": false, "rc": 0, "start": "2025-05-24 08:40:22.654656" } STDOUT: running TASK [fedora.linux_system_roles.cockpit : Require installed systemd] *********** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:17 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.421) 0:00:02.816 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "\"No such file or directory\" in __is_system_running.msg | d(\"\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Set flag to indicate that systemd runtime operations are available] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:22 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.037) 0:00:02.853 ********** ok: [managed-node2] => { "ansible_facts": { "__cockpit_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Check if system is ostree] *********** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:30 Saturday 24 May 2025 08:40:22 -0400 (0:00:00.020) 0:00:02.874 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.cockpit : Set flag to indicate system is ostree] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:35 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.419) 0:00:03.293 ********** ok: [managed-node2] => { "ansible_facts": { "__cockpit_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:42 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.022) 0:00:03.315 ********** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.cockpit : Set flag if transactional-update exists] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:47 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.335) 0:00:03.651 ********** ok: [managed-node2] => { "ansible_facts": { "__cockpit_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:51 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.022) 0:00:03.673 ********** ok: [managed-node2] => (item=/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-9.yml) => { "ansible_facts": { "__cockpit_packages": { "default": "{{ __cockpit_packages_minimal + __cockpit_packages_default }}", "full": "{{ __cockpit_packages_minimal + __cockpit_packages_default + __cockpit_packages_full }}", "minimal": "{{ __cockpit_packages_minimal }}" }, "__cockpit_packages_default": [ "cockpit", "cockpit-networkmanager", "cockpit-packagekit", "cockpit-selinux", "cockpit-storaged" ], "__cockpit_packages_exclude": [ "cockpit-docker", "cockpit-ostree", "cockpit-tests" ], "__cockpit_packages_full": [ "cockpit-*" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-9.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:11 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.021) 0:00:03.695 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == 'RedHat'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:18 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.013) 0:00:03.709 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == 'RedHat'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:23 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.011) 0:00:03.721 ********** included: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml for managed-node2 => (item=/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml) TASK [fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:2 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.043) 0:00:03.765 ********** ok: [managed-node2] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Get cockpit-bridge available version in "full" package install mode] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:7 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.020) 0:00:03.786 ********** skipping: [managed-node2] => { "changed": false, "false_condition": "cockpit_packages == \"full\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Ignore cockpit-pcp in "full" package install mode with Cockpit ≥ 326] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:17 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.012) 0:00:03.798 ********** ok: [managed-node2] => { "ansible_facts": { "cockpit_packages_dyn_exclude": [] }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed] *** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:21 Saturday 24 May 2025 08:40:23 -0400 (0:00:00.019) 0:00:03.818 ********** fatal: [managed-node2]: 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 [Test - clean up generated certificate] *********************************** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:87 Saturday 24 May 2025 08:40:27 -0400 (0:00:04.246) 0:00:08.064 ********** ok: [managed-node2] => { "changed": false, "path": "/etc/cockpit/ws-certs.d/monger-cockpit.crt", "state": "absent" } TASK [Test - clean up generated private key] *********************************** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:92 Saturday 24 May 2025 08:40:28 -0400 (0:00:00.503) 0:00:08.567 ********** ok: [managed-node2] => { "changed": false, "path": "/etc/cockpit/ws-certs.d/monger-cockpit.key", "state": "absent" } TASK [Test - generic cleanup] ************************************************** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:97 Saturday 24 May 2025 08:40:28 -0400 (0:00:00.337) 0:00:08.905 ********** included: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml for managed-node2 TASK [Cleanup - packages] ****************************************************** task path: /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 Saturday 24 May 2025 08:40:28 -0400 (0:00:00.045) 0:00:08.951 ********** fatal: [managed-node2]: 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 PLAY RECAP ********************************************************************* managed-node2 : ok=16 changed=0 unreachable=0 failed=2 skipped=5 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-24T12:40:27.954846+00:00Z", "host": "managed-node2", "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-24T12:40:23.714430+00:00Z", "task_name": "Ensure Cockpit Web Console packages are installed", "task_path": "/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:21" }, { "ansible_version": "2.17.12", "end_time": "2025-05-24T12:40:32.405638+00:00Z", "host": "managed-node2", "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-24T12:40:28.847762+00:00Z", "task_name": "Cleanup - packages", "task_path": "/tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 08:40:32 -0400 (0:00:03.559) 0:00:12.510 ********** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed --- 4.25s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:21 Cleanup - packages ------------------------------------------------------ 3.56s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 Gathering Facts --------------------------------------------------------- 2.27s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:2 Test - clean up generated certificate ----------------------------------- 0.50s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:87 fedora.linux_system_roles.cockpit : Run systemctl ----------------------- 0.42s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:10 fedora.linux_system_roles.cockpit : Check if system is ostree ----------- 0.42s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:30 Test - clean up generated private key ----------------------------------- 0.34s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:92 fedora.linux_system_roles.cockpit : Check if transactional-update exists in /sbin --- 0.34s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:42 Include role ------------------------------------------------------------ 0.05s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:10 Test - generic cleanup -------------------------------------------------- 0.05s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_external.yml:97 fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.04s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:23 fedora.linux_system_roles.cockpit : Require installed systemd ----------- 0.04s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:17 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.03s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:2 fedora.linux_system_roles.cockpit : Set flag if transactional-update exists --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:47 fedora.linux_system_roles.cockpit : Set flag to indicate system is ostree --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:35 fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:51 fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:2 fedora.linux_system_roles.cockpit : Set flag to indicate that systemd runtime operations are available --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:22 fedora.linux_system_roles.cockpit : Ignore cockpit-pcp in "full" package install mode with Cockpit ≥ 326 --- 0.02s /tmp/collections-k1K/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:17