diff --git a/lib/ansible/modules/windows/win_copy.ps1 b/lib/ansible/modules/windows/win_copy.ps1 index 26b4c76a398..2af02105fe3 100644 --- a/lib/ansible/modules/windows/win_copy.ps1 +++ b/lib/ansible/modules/windows/win_copy.ps1 @@ -76,7 +76,7 @@ Function Copy-File($source, $dest) { } if (Test-Path -Path $dest -PathType Leaf) { - Remove-Item -Path $dest -Force -Recurse | Out-Null + Remove-Item -Path $dest -Force -Recurse -WhatIf:$check_mode | Out-Null $diff += "-$dest`n" }