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
208 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 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
1,659 views
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
541 views
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
63 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
208 views
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
73 views