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
ERROR! the role 'fedora.linux_system_roles.pam_pwd' was not found in /tmp/collections-RQ4/ansible_collections/fedora/linux_system_roles/tests/pam_pwd/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-RQ4/ansible_collections/fedora/linux_system_roles/tests/pam_pwd

The error appears to be in '/tmp/collections-RQ4/ansible_collections/fedora/linux_system_roles/tests/pam_pwd/tests_default.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - fedora.linux_system_roles.pam_pwd
      ^ here