The problem is that you have `register` indented one level too far.  It
needs to be indented to the same level as `name` and `get_url`.  It is not
an argument for the module.

On Tue, Apr 7, 2020 at 3:53 PM newbie newbie <pvnew...@gmail.com> wrote:

> Hi,
>
> I am trying to print the return values from the get_url module using the
> yaml code below:
>
>  - name: connect to server and download file
>       get_url:
>         url: http://10.0.0.2/file1.html
>         register: all_data
>
>     - name: print time it took to transfer file
>       debug:
>         var: all_data
>
>
> However, it always fails with the following error:
> TASK [connect to server and download file]
> ***************************************************************
> fatal: [node1]: FAILED! => {"changed": false, "msg": "Unsupported
> parameters for (get_url) module: register Supported parameters include:
> attributes, backup, checksum, client_cert, client_key, content, delimiter,
> dest, directory_mode, follow, force, force_basic_auth, group, headers,
> http_agent, mode, owner, regexp, remote_src, selevel, serole, setype,
> seuser, sha256sum, src, timeout, tmp_dest, unsafe_writes, url,
> url_password, url_username, use_proxy, validate_certs"}
>
>
> How do i get the return values for the module?
>
> thank you
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/895bb43d-c011-400d-827f-9695b6edbbab%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/895bb43d-c011-400d-827f-9695b6edbbab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v-3Ng0dLFhuBqG_JFkKK%3D6f%2Bh69Nto2b9nLtZk8rv%3D3cg%40mail.gmail.com.

Reply via email to