diff --git a/lib/ansible/modules/windows/win_get_url.ps1 b/lib/ansible/modules/windows/win_get_url.ps1 index 96189d69113..e5e1ea73c83 100644 --- a/lib/ansible/modules/windows/win_get_url.ps1 +++ b/lib/ansible/modules/windows/win_get_url.ps1 @@ -40,7 +40,9 @@ Else { Fail-Json $result "missing required argument: dest" } -If (-not (Test-Path $dest)) { +$force = Get-Attr -obj $params -name "force" "no" + +If ($force -eq "yes" -or -not (Test-Path $dest)) { $client = New-Object System.Net.WebClient Try {