How to use get_url on windows - Ansible

0 votes
I sort of know how to use download files on ubuntu using get_url but how I do the same on windows? Is there a specialized module for it or do I need to make changes on the same get_url module?
Jan 24 in Ansible by Biji

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Biji, you could use the win_get_url module for downloading files on windows target. 

According to the documentation, win_get_url is used to downloads files from HTTP, HTTPS, or FTP to the remote server. The remote server must have direct access to the remote resource.


- name: Download blah.jpg to specified path
    dest: C:\Users\User\blahe.jpg
answered Jan 24 by Olly

Related Questions In Ansible

0 votes
1 answer

How to use Ansible git module pull a branch with local changes?

You cannot achieve it using the git ...READ MORE

answered Jul 9, 2018 in Ansible by Atul
• 10,190 points
0 votes
1 answer

How to set vault password on ansible tower?

On Ansible Tower, go to Settings > ...READ MORE

answered Jan 29 in Ansible by Yesha
0 votes
1 answer

How do I install Ansible on windows?

Hi Neha, you cannot have an entire ...READ MORE

answered Feb 27 in Ansible by Kavya
0 votes
1 answer

How do I execute a shell script and then use the result in ansible

This can work out for you: - name: ...READ MORE

answered Apr 11, 2018 in Ansible by shubham
• 6,480 points
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do i set multiple authorized keys to my ansible playbook?

Try this: - name: Set up multiple authorized ...READ MORE

answered Feb 11 in Ansible by John

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.