From e16bd19401c744a5c7a126fbbd7dad12bb2e8919 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 11 Feb 2016 16:43:12 +0100 Subject: [PATCH] win_unzip: overwrite any existing file --- lib/ansible/modules/extras/windows/win_unzip.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_unzip.ps1 b/lib/ansible/modules/extras/windows/win_unzip.ps1 index 0e5485dddb..f547c0081f 100644 --- a/lib/ansible/modules/extras/windows/win_unzip.ps1 +++ b/lib/ansible/modules/extras/windows/win_unzip.ps1 @@ -61,7 +61,8 @@ If ($ext -eq ".zip" -And $recurse -eq $false) { $shell = New-Object -ComObject Shell.Application $zipPkg = $shell.NameSpace($src) $destPath = $shell.NameSpace($dest) - $destPath.CopyHere($zipPkg.Items()) + # 20 means do not display any dialog (4) and overwrite any file (16) + $destPath.CopyHere($zipPkg.Items(), 20) $result.changed = $true } Catch {