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, 2019 in Ansible by Biji
4,680 views

1 answer to this question.

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.

example:

- name: Download blah.jpg to specified path
  win_get_url:
    url: http://www.something.com/blah.jpg
    dest: C:\Users\User\blahe.jpg
answered Jan 24, 2019 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,240 points
7,008 views
0 votes
1 answer

How to set vault password on ansible tower?

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

answered Jan 29, 2019 in Ansible by Yesha
6,147 views
0 votes
1 answer

How do I install Ansible on windows?

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

answered Feb 28, 2019 in Ansible by Kavya
1,598 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,987 views
+2 votes
1 answer
0 votes
1 answer

How do I manage Server Load balancing on A10 network? - Ansible

Hey @Tanishq, you can use the a10_server ...READ MORE

answered Feb 11, 2019 in Ansible by Myra
1,075 views
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 12, 2019 in Ansible by John
1,423 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP