ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_port.yml ******************************************************* 1 plays in /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml PLAY [Test cockpit_* role options] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml:2 ok: [managed-node2] META: ran handlers TASK [Install SELinux tools] *************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml:8 included: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml for managed-node2 TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml:6 ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml:11 ok: [managed-node2] => {"ansible_facts": {"__cockpit_is_ostree": false}, "changed": false} TASK [Install SELinux python2 tools] ******************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml:15 ok: [managed-node2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-34.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [Install SELinux python3 tools] ******************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml:26 skipping: [managed-node2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Install SELinux tool semanage] ******************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/install_selinux_tools.yml:37 skipping: [managed-node2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Allow cockpit to own customized port in SELinux] ************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml:11 ok: [managed-node2] => {"changed": false, "cmd": "set -eu\nif selinuxenabled; then\n semanage port -m -t websm_port_t -p tcp 443\nfi\n", "delta": "0:00:06.437130", "end": "2024-09-24 13:22:12.388746", "rc": 0, "start": "2024-09-24 13:22:05.951616", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Run cockpit role] ******************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml:19 ERROR! the role 'fedora.linux_system_roles.cockpit' was not found in /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit The error appears to be in '/tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml': line 21, column 19, 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.cockpit ^ here TASK [Cleanup] ***************************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_port.yml:56 included: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml for managed-node2 TASK [Cleanup - packages] ****************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 ok: [managed-node2] => {"changed": false, "msg": "", "rc": 0, "results": ["cockpit-bridge is not installed", "cockpit-ws is not installed", "cockpit-doc is not installed"]} TASK [Cleanup - services] ****************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:15 skipping: [managed-node2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Cleanup - find certificates] ********************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:25 ok: [managed-node2] => {"changed": false, "examined": 0, "files": [], "matched": 0, "msg": "/etc/cockpit/ws-certs.d/ was skipped as it does not seem to be a valid directory or it cannot be accessed\n"} TASK [Cleanup - certificates] ************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:35 TASK [Cleanup - config file] *************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:44 ok: [managed-node2] => {"changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent"} TASK [Cleanup - port customization] ******************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:52 ok: [managed-node2] => {"changed": false, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent"} TASK [Cleanup - Reload systemd] ************************************************ task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:60 ok: [managed-node2] => {"changed": false, "name": null, "status": {}} PLAY RECAP ********************************************************************* managed-node2 : ok=12 changed=0 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0