perl and perl package install??

Hii all…
my playbook view like this…

It looks to me there is a wrong format in the task. According to:

https://docs.ansible.com/ansible/latest/collections/community/general/cpanm_module.html
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/items_lookup.html

it should be something like this:

  • name: install perl modules
    community.general.cpanm:
    name: “{{ item }}”
    with_items:
  • DBM::Deep
  • Digest::MD5
  • Encode