ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml 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_login.yml ****************************************************** 1 plays in /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml PLAY [Check if selinux role sets SELinux login mappings] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:2 Tuesday 17 June 2025 13:15:40 -0400 (0:00:00.019) 0:00:00.019 ********** ok: [managed-node1] META: ran handlers TASK [Add a System Api Roles SELinux User] ************************************* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:5 Tuesday 17 June 2025 13:15:41 -0400 (0:00:00.856) 0:00:00.876 ********** changed: [managed-node1] => { "append": false, "changed": true, "comment": "System Api Roles SELinux User", "group": 1000, "home": "/home/sar-user", "move_home": false, "name": "sar-user", "shell": "/bin/bash", "state": "present", "uid": 1000 } TASK [Initial changes] ********************************************************* task path: /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:10 Tuesday 17 June 2025 13:15:42 -0400 (0:00:00.509) 0:00:01.385 ********** ERROR! couldn't resolve module/action 'community.general.sefcontext'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml': line 121, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Set SELinux file contexts ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 17 June 2025 13:15:42 -0400 (0:00:00.038) 0:00:01.424 ********** =============================================================================== Gathering Facts --------------------------------------------------------- 0.86s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:2 Add a System Api Roles SELinux User ------------------------------------- 0.51s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:5 Initial changes --------------------------------------------------------- 0.04s /tmp/collections-gg3/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_login.yml:10