[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.3] 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-yP7 executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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_port2.yml ****************************************************** 1 plays in /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml PLAY [Test cockpit_* role options] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:2 Saturday 07 September 2024 08:38:55 -0400 (0:00:00.022) 0:00:00.022 **** [WARNING]: Platform linux on host managed_node1 is using the discovered Python interpreter at /usr/bin/python3.12, 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 [Run cockpit role] ******************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:8 Saturday 07 September 2024 08:38:56 -0400 (0:00:01.312) 0:00:01.335 **** included: fedora.linux_system_roles.cockpit for managed_node1 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:2 Saturday 07 September 2024 08:38:56 -0400 (0:00:00.043) 0:00:01.379 **** included: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Saturday 07 September 2024 08:38:56 -0400 (0:00:00.023) 0:00:01.403 **** skipping: [managed_node1] => { "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 : Check if system is ostree] *********** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:10 Saturday 07 September 2024 08:38:56 -0400 (0:00:00.039) 0:00:01.442 **** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.cockpit : Set flag to indicate system is ostree] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:15 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.492) 0:00:01.935 **** ok: [managed_node1] => { "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-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:22 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.032) 0:00:01.967 **** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.cockpit : Set flag if transactional-update exists] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:27 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.369) 0:00:02.336 **** ok: [managed_node1] => { "ansible_facts": { "__cockpit_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:31 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.026) 0:00:02.363 **** ok: [managed_node1] => (item=/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.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-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:11 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.027) 0:00:02.390 **** skipping: [managed_node1] => { "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-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:18 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.014) 0:00:02.405 **** skipping: [managed_node1] => { "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-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:23 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.014) 0:00:02.420 **** included: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml for managed_node1 => (item=/tmp/collections-yP7/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-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:2 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.056) 0:00:02.477 **** ok: [managed_node1] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:7 Saturday 07 September 2024 08:38:57 -0400 (0:00:00.025) 0:00:02.503 **** changed: [managed_node1] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-322-1.fc39.noarch", "Installed: cockpit-bridge-322-1.fc39.x86_64", "Installed: cockpit-ws-322-1.fc39.x86_64" ] } lsrpackages: cockpit-system cockpit-ws TASK [fedora.linux_system_roles.cockpit : Ensure full package list is installed] *** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:15 Saturday 07 September 2024 08:39:09 -0400 (0:00:12.377) 0:00:14.880 **** skipping: [managed_node1] => { "changed": false, "false_condition": "'cockpit-*' in __pkgs", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Configure firewall] ****************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:32 Saturday 07 September 2024 08:39:09 -0400 (0:00:00.020) 0:00:14.900 **** included: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/firewall.yml for managed_node1 TASK [Ensure the cockpit service is enabled] *********************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/firewall.yml:3 Saturday 07 September 2024 08:39:10 -0400 (0:00:00.020) 0:00:14.921 **** ERROR! the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit The error appears to be in '/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/firewall.yml': line 5, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.firewall ^ here fatal: [managed_node1]: FAILED! => { "changed": false, "reason": "the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit\n\nThe error appears to be in '/tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/firewall.yml': line 5, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n include_role:\n name: fedora.linux_system_roles.firewall\n ^ here\n" } TASK [Cleanup] ***************************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:50 Saturday 07 September 2024 08:39:10 -0400 (0:00:00.041) 0:00:14.962 **** included: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml for managed_node1 TASK [Cleanup - packages] ****************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 Saturday 07 September 2024 08:39:10 -0400 (0:00:00.032) 0:00:14.995 **** changed: [managed_node1] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-system-322-1.fc39.noarch", "Removed: cockpit-ws-322-1.fc39.x86_64", "Removed: cockpit-bridge-322-1.fc39.x86_64" ] } TASK [Cleanup - services] ****************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:15 Saturday 07 September 2024 08:39:20 -0400 (0:00:10.287) 0:00:25.283 **** skipping: [managed_node1] => { "changed": false, "false_condition": "__cockpit_is_ostree | d(false)", "skip_reason": "Conditional result was False" } TASK [Cleanup - find certificates] ********************************************* task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:25 Saturday 07 September 2024 08:39:20 -0400 (0:00:00.035) 0:00:25.318 **** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [managed_node1] => { "changed": false, "examined": 0, "files": [], "matched": 0, "skipped_paths": { "/etc/cockpit/ws-certs.d/": "'/etc/cockpit/ws-certs.d/' is not a directory" } } MSG: Not all paths examined, check warnings for details TASK [Cleanup - certificates] ************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:35 Saturday 07 September 2024 08:39:21 -0400 (0:00:00.637) 0:00:25.956 **** skipping: [managed_node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Cleanup - config file] *************************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:44 Saturday 07 September 2024 08:39:21 -0400 (0:00:00.015) 0:00:25.971 **** ok: [managed_node1] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [Cleanup - port customization] ******************************************** task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:52 Saturday 07 September 2024 08:39:21 -0400 (0:00:00.499) 0:00:26.470 **** ok: [managed_node1] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [Cleanup - Reload systemd] ************************************************ task path: /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:60 Saturday 07 September 2024 08:39:21 -0400 (0:00:00.385) 0:00:26.856 **** ok: [managed_node1] => { "changed": false, "name": null, "status": {} } PLAY RECAP ********************************************************************* managed_node1 : ok=18 changed=2 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0 Saturday 07 September 2024 08:39:23 -0400 (0:00:01.168) 0:00:28.025 **** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 12.38s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:7 Cleanup - packages ----------------------------------------------------- 10.29s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 Gathering Facts --------------------------------------------------------- 1.31s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:2 Cleanup - Reload systemd ------------------------------------------------ 1.17s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:60 Cleanup - find certificates --------------------------------------------- 0.64s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:25 Cleanup - config file --------------------------------------------------- 0.50s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:44 fedora.linux_system_roles.cockpit : Check if system is ostree ----------- 0.49s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:10 Cleanup - port customization -------------------------------------------- 0.39s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:52 fedora.linux_system_roles.cockpit : Check if transactional-update exists in /sbin --- 0.37s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:22 fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.06s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:23 Run cockpit role -------------------------------------------------------- 0.04s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:8 Ensure the cockpit service is enabled ----------------------------------- 0.04s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/firewall.yml:3 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.04s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Cleanup - services ------------------------------------------------------ 0.04s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:15 fedora.linux_system_roles.cockpit : Set flag to indicate system is ostree --- 0.03s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:15 Cleanup ----------------------------------------------------------------- 0.03s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port2.yml:50 fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.03s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:31 fedora.linux_system_roles.cockpit : Set flag if transactional-update exists --- 0.03s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:27 fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.03s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:2 fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role --- 0.02s /tmp/collections-yP7/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:2