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_trusted_execution.yml ****************************************** 1 plays in /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 ok: [managed-node1] META: ran handlers TASK [Create temp test directory] ********************************************** task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 changed: [managed-node1] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_HiKOvt", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Create directories for tests] ******************************************** task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 changed: [managed-node1] => (item=/var/tmp/fapolicyd_HiKOvt) => {"ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_HiKOvt", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_HiKOvt", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} changed: [managed-node1] => (item=/var/tmp/fapolicyd_HiKOvt/executables) => {"ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_HiKOvt/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_HiKOvt/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Create shell executables] ************************************************ task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 changed: [managed-node1] => (item=/var/tmp/fapolicyd_HiKOvt/executables/exe1) => {"ansible_loop_var": "item", "changed": true, "checksum": "fc8be6fd27f39d635ba08c44b5f841dd7f0c8bb3", "dest": "/var/tmp/fapolicyd_HiKOvt/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_HiKOvt/executables/exe1", "md5sum": "d9253e5a0e577ba821ca384b6b498aad", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 99, "src": "/root/.ansible/tmp/ansible-tmp-1727199928.31-9723-167846502341885/source", "state": "file", "uid": 0} changed: [managed-node1] => (item=/var/tmp/fapolicyd_HiKOvt/executables/exe2) => {"ansible_loop_var": "item", "changed": true, "checksum": "a8d210d8ab554be3bb8aae61eaeb3104a07c9e1c", "dest": "/var/tmp/fapolicyd_HiKOvt/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_HiKOvt/executables/exe2", "md5sum": "f9928c9a0aa9a88ae2ef7705ebd54075", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 99, "src": "/root/.ansible/tmp/ansible-tmp-1727199929.04-9723-202409992838836/source", "state": "file", "uid": 0} TASK [Create a new user] ******************************************************* task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 changed: [managed-node1] => {"changed": true, "comment": "", "create_home": true, "group": 1000, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000} TASK [Run the role] ************************************************************ task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 ERROR! the role 'fedora.linux_system_roles.fapolicyd' was not found in /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd The error appears to be in '/tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml': line 63, 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.fapolicyd ^ here TASK [Shutdown fapolicyd] ****************************************************** task path: /tmp/collections-6uq/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 fatal: [managed-node1]: FAILED! => {"changed": false, "msg": "Could not find the requested service fapolicyd: host"} PLAY RECAP ********************************************************************* managed-node1 : ok=5 changed=4 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0