Member-only story
Download a file in Windows-like systems — Ansible module win_get_url
How to automate the download of a file, verify the checksum and save wherever you want in Windows-like systems with Ansible module win_get_url.
How to download a file in Windows-like systems with Ansible?
I’m going to show you a live demo and some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible download a file in Windows-like systems
ansible.windows.win_get_url
- Downloads file from HTTP, HTTPS, or FTP to node
Let’s talk about the Ansible module `win_get_url`.
The full name is `ansible.windows.win_get_url`, which means that is part of the collection of modules of Ansible to interact with Windows nodes.
It downloads files from HTTP, HTTPS, or FTP to node
For Linux targets, use the `ansible.builtin.get_url
` Ansible module instead.
Parameters
- url string — URL