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_certificate_internal.yml *************************************** 1 plays in /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml PLAY [Test the cockpit role calling the certificate role internally] *********** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:2 ok: [managed-node1] META: ran handlers TASK [Include role] ************************************************************ task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:13 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_certificate_internal.yml': line 15, column 23, 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 [Check the error message] ************************************************* task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:36 fatal: [managed-node1]: FAILED! => {"msg": "The conditional check 'ansible_failed_result.msg == expected' failed. The error was: error while evaluating conditional (ansible_failed_result.msg == expected): 'ansible_failed_result' is undefined"} TASK [Test - clean up generated certificate] *********************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:95 ok: [managed-node1] => {"changed": false, "path": "/etc/pki/tls/certs/cockpit_cert.crt", "state": "absent"} TASK [Test - clean up generated private key] *********************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:100 ok: [managed-node1] => {"changed": false, "path": "/etc/pki/tls/private/cockpit_cert.key", "state": "absent"} TASK [Test - generic cleanup] ************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tests_certificate_internal.yml:105 included: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml for managed-node1 TASK [Cleanup - packages] ****************************************************** task path: /tmp/collections-vRR/ansible_collections/fedora/linux_system_roles/tests/cockpit/tasks/cleanup.yml:2 ok: [managed-node1] => {"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-node1] => {"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-node1] => {"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-node1] => {"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-node1] => {"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-node1] => {"changed": false, "name": null, "status": {}} PLAY RECAP ********************************************************************* managed-node1 : ok=9 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0