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 <[email protected]> wrote:

> {"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, unix_socket, unsafe_writes, headers, url, creates, selevel,
> http_agent, mode, body, status_code, removes, method, remote_src, dest,
> url_password (password), url_username (user), timeout, group, body_format,
> follow_redirects,
> this is the error I am getting
> here is my playbook
>
> --- - name: make a curl call hosts: localhost become: true user: root
> gather_facts: no tasks: - name: Create Weekly Release Sequence
> ansible.builtin.uri: url: 'https://google.com' method: GET
> return_content: yes body_format: json register: result - debug: var:
> result.stdout no_log: False
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/cd115a98-3dd4-4ccc-9071-b45c4058e3e3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/cd115a98-3dd4-4ccc-9071-b45c4058e3e3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFtje5Ph_03hBhrHmSXzSfZ3r0CN-hOciUXGwTdUt2a-NxVkAg%40mail.gmail.com.

Reply via email to