--- - name: win_get_url module demo hosts: all become: false vars: myurl: "https://releases.ansible.com/ansible/ansible-2.9.25.tar.gz" mydest: 'C:\Users\vagrant\Desktop\ansible-2.9.25.tar.gz' ansible_shell_type: powershell shell_type: powershell tasks: - name: download file ansible.windows.win_get_url: url: "{{ myurl }}" dest: "{{ mydest }}"