How to use Pam module to set different ulimit values for different accounts in one go

Hi Guys,

I want to set ulimit (nproc,nofile and core) for multiple accounts with different value for each type.

Please let me know what can be done for this , if anybody has idea regarding this.

Thanks,
-Neetu

Use with_items
https://docs.ansible.com/ansible/playbooks_loops.html#standard-loops