Hi,
I tried the following, im saving the output to a file and trying that to
copy to a file. but not working can any one help.
---
- hosts: windows
remote_user: admin
tasks:
- name: rest api
win_uri:
url: http://example.com
method: GET
register: json_ouput
- name: copying the content to a file
copy: content="{{ json_ooutput}}" dest=/path/to/destination/file_name
Thanks and Regards,
Shyam.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f4e209fc-a9df-444a-909e-e8783ce70b1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.