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
[WARNING]: running playbook inside collection fedora.linux_system_roles
ERROR! couldn't resolve module/action 'fedora.linux_system_roles.firewall_lib'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/tmp/collections-pX3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml': line 74, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# "casting" it into a list.
- name: Configure firewall
  ^ here