Your issue is that the register is not part of the module, but of the task.
Check your indentation.
On Thu, May 18, 2023, 7:01 PM Narmada Karthika wrote:
> {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.uri)
> module: register. Supported parameters include: ca_path,
{"changed": false, "msg": "Unsupported parameters for (ansible.legacy.uri)
module: register. Supported parameters include: ca_path, serole,
client_key, use_proxy, setype, attributes (attr), force (thirsty),
use_gssapi, force_basic_auth, seuser, src, validate_certs, client_cert,
return_content,