From ab7aa73cdbe40ffd886e66c9c9adc670b4c92d99 Mon Sep 17 00:00:00 2001 From: daveres Date: Tue, 8 Dec 2015 19:00:31 +0100 Subject: [PATCH] Correct problem with changed:true I have just changed a small piece of this module to avoid to return always that the task is changed --- lib/ansible/modules/extras/windows/win_chocolatey.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_chocolatey.ps1 b/lib/ansible/modules/extras/windows/win_chocolatey.ps1 index ce006fff152..2c9a945840c 100644 --- a/lib/ansible/modules/extras/windows/win_chocolatey.ps1 +++ b/lib/ansible/modules/extras/windows/win_chocolatey.ps1 @@ -86,7 +86,7 @@ Function Choco-IsInstalled Throw "Error checking installation status for $package" } - If ("$results" -match " $package .* (\d+) packages installed.") + If ("$results" -match "$package .* (\d+) packages installed.") { return $matches[1] -gt 0 }