Using special characters in strings

I am trying use ‘*’ as a value for the domain parameter in this module
https://docs.ansible.com/ansible/latest/collections/community/general/pam_limits_module.html

It just keeps saying I am missing quotes around the star character.

I have tried using “{{”“}}”, “{{”*“}}”, "", “*” etc. with no avail. My playbook looks like this:

-name: update soft nproc limits.conf
community.general.pam_limits:
domain: “{{”*"}}
limit_type: soft
limit_item: nproc
value: 204800

Could someone guide me in the right direction?
Thank you very much,
S

This is resolved. I had an unquoted star character elsewhere in the playbook that was causing the problem.

But those braces look wrong.
I know you got it to work but it could still be wrong and cause problems elsewhere.

What does your task look like now?