Repository: ansible/ansible-modules-extras

Issue:
chocolatey 0.10.0 needs to pass argument to choco.exe
<!--- Verify first that your issue/request is not already reported in GitHub -->
##### ISSUE TYPE

<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME

<!--- Name of the plugin/module/task -->

win_chocolatey
##### ANSIBLE VERSION

<!--- Paste verbatim output from “ansible --version” between quotes below -->

```
ansible 2.2.0
```
##### CONFIGURATION

<!---
Mention any settings you have changed/added/removed in ansible.cfg
(or using the ANSIBLE_* environment variables).
-->
##### OS / ENVIRONMENT

<!---
Mention the OS you are running Ansible from, and the OS you are
managing, or say “N/A” for anything that is not platform-specific.
-->

OSX 10.11.6
##### SUMMARY

<!--- Explain the problem briefly -->

Chocolatey package that is using http to download will require parameter "--allow-empty-checksums" or "--ignore-checksums"
Chocolatey 0.10.0 is now prompt during install due to missing checksums, and as a result, it simply fails.
more info
https://github.com/chocolatey/choco/issues/112
##### STEPS TO REPRODUCE

<!---
For bugs, show exactly how to reproduce the problem.
For new features, show how the feature would be used.
-->

<!--- Paste example playbooks or commands between quotes below -->

```
  win_chocolatey:
    name: octopusdeploy.tentacle
```

<!--- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS

<!--- What did you expect to happen when running the steps above? -->

```
ok: [hostname] => {"changed": false, "stat": {"exists": false}}
```
##### ACTUAL RESULTS

<!--- What actually happened? If possible run with high verbosity (-vvvv) -->

from the windows powershell

```
WARNING: Missing package checksums are not allowed (by default for HTTP/FTP,
 HTTPS when feature 'allowEmptyChecksumsSecure' is disabled) for
 safety and security reasons. Although we strongly advise against it,
 if you need this functionality, please set the feature
 'allowEmptyChecksums' ('choco feature enable -n
 allowEmptyChecksums')
 or pass in the option '--allow-empty-checksums'.
If you are a maintainer attempting to determine the checksum for packaging purposes, please run
 'choco install checksum' and run 'checksum -t sha256 -f C:\Users\Administrator\AppData\Local\Temp\chocolatey\OctopusDep
loy.Tentacle\3.3.27\Octopus.Tentacle.3.3.27-x64.msi'
 Ensure you do this for all remote resources.
The integrity of the file 'Octopus.Tentacle.3.3.27-x64.msi' from 'http://download.octopusdeploy.com/octopus/Octopus.Tent
acle.3.3.27-x64.msi' has not been verified by a checksum in the package scripts.
Do you wish to allow the install to continue (not recommended)?
[Y] Yes [N] No (default is "N")

ERROR: Empty checksums are no longer allowed by default for non-secure sources. Please ask the maintainer to add checksu
ms to this package. In the meantime if you need this package to work correctly, please enable the feature allowEmptyChec
ksums or provide the runtime switch '--allowEmptyChecksums'. We strongly advise against allowing empty checksums for HTT
P/FTP sources.
 at Get-ChecksumValid, C:\ProgramData\chocolatey\helpers\functions\Get-CheckSumValid.ps1: line 160
at Get-ChocolateyWebFile, C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1: line 334
at Install-ChocolateyPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyPackage.ps1: line 274
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1: line 1
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 48
at <ScriptBlock>, <No file>: line 1
```

From the ansible play

```fatal: [hostname]: FAILED! => {
    "changed": false, 
    "choco_error_cmd": "choco.exe install -dv -y octopusdeploy.tentacle", 
    "choco_error_log": "Chocolatey v0.10.0 Chocolatey is running on Windows v 6.3.9600.0 Attempting to delete file \"C:/ProgramData/chocolatey/choco.exe.old\". Attempting to delete file \"C:\\ProgramData\\chocolatey\\choco.exe.old\". Command line: \"C:\\ProgramData\\chocolatey\\choco.exe\" install -dv -y octopusdeploy.tentacle -params --allowEmptyChecksums Received arguments: install -dv -y octopusdeploy.tentacle -params --allowEmptyChecksums RemovePendingPackagesTask is now ready and waiting for PreRunMessage. Sending message 'PreRunMessage' out if there are subscribers... [Pending] Removing all pending packages that should not be considered installed... The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type  NOTE: Hiding sensitive configuration data! Please double and triple   check to be sure no sensitive data is shown, especially if copying   output to a gist for review. Configuration: CommandName='install'| CacheLocation='C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| Sources='https://chocolatey.org/api/v2/'|SourceType='normal'| Debug='True'|Verbose='True'|Force='False'|Noop='False'| HelpRequested='False'|RegularOutput='True'|QuietOutput='False'| PromptForConfirmation='False'|AcceptLicense='True'| AllowUnofficialBuild='False'|Input='octopusdeploy.tentacle'| AllVersions='False'|SkipPackageInstallProvider='False'| PackageNames='octopusdeploy.tentacle'|Prerelease='False'| ForceX86='False'|OverrideArguments='False'|NotSilent='False'| PackageParameters='--allowEmptyChecksums'|IgnoreDependencies='False'| AllowMultipleVersions='False'|AllowDowngrade='False'| ForceDependencies='False'|Information.PlatformType='Windows'| Information.PlatformVersion='6.3.9600.0'| Information.PlatformName='Windows Server 2012 R2'| Information.ChocolateyVersion='0.10.0.0'| Information.ChocolateyProductVersion='0.10.0'| Information.FullName='choco, Version=0.10.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|  Information.Is64Bit='True'|Information.IsInteractive='False'| Information.IsUserAdministrator='True'| Information.IsProcessElevated='True'| Information.IsLicensedVersion='False'|Features.AutoUninstaller='True'| Features.ChecksumFiles='True'|Features.AllowEmptyChecksums='False'| Features.AllowEmptyChecksumsSecure='True'| Features.FailOnAutoUninstaller='False'| Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'| Features.LogEnvironmentValues='False'|Features.VirusCheck='False'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='True'| Features.UsePackageExitCodes='True'| Features.UseFipsCompliantChecksums='False'| ListCommand.LocalOnly='False'| ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'| ListCommand.Exact='False'|ListCommand.ByIdOnly='False'| ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'| ListCommand.ApprovedOnly='False'| ListCommand.DownloadCacheAvailable='False'| ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'| UpgradeCommand.FailOnNotInstalled='False'| UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| NewCommand.AutomaticPackage='False'| NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'| SourceCommand.Priority='0'|FeatureCommand.Command='unknown'| ConfigCommand.Command='unknown'|PinCommand.Command='unknown'| _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ Installing the following packages: octopusdeploy.tentacle By installing you accept licenses for the packages. [NuGet] Installing 'OctopusDeploy.Tentacle 3.3.27'. [NuGet] Added file 'chocolateyInstall.ps1' to folder 'OctopusDeploy.Tentacle'. [NuGet] Added file 'OctopusDeploy.Tentacle.nuspec' to folder 'OctopusDeploy.Tentacle'. [NuGet] Added file 'OctopusDeploy.Tentacle.nupkg' to folder 'OctopusDeploy.Tentacle'. [NuGet] Successfully installed 'OctopusDeploy.Tentacle 3.3.27'.  OctopusDeploy.Tentacle v3.3.27 [Approved] Setting installer args and package parameters for OctopusDeploy.Tentacle Contents of 'C:\\ProgramData\\chocolatey\\lib\\OctopusDeploy.Tentacle\\chocolateyInstall.ps1': Install-ChocolateyPackage 'OctopusDeploy.Tentacle' 'msi' '/quiet' 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27.msi' 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi'  Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyInstaller.psm1'; & 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyScriptRunner.ps1' -packageScript 'C:\\ProgramData\\chocolatey\\lib\\OctopusDeploy.Tentacle\\chocolateyInstall.ps1' -installArguments '' -packageParameters '--allowEmptyChecksums''] Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by '' Host version is 5.0.10586.117, PowerShell Version is '5.0.10586.117' and CLR Version is '4.0.30319.42000'. VERBOSE: Exporting function 'Format-FileSize'. VERBOSE: Exporting function 'Get-ChecksumValid'. VERBOSE: Exporting function 'Get-ChocolateyUnzip'. VERBOSE: Exporting function 'Get-ChocolateyWebFile'. VERBOSE: Exporting function 'Get-EnvironmentVariable'. VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. VERBOSE: Exporting function 'Get-FtpFile'. VERBOSE: Exporting function 'Get-OSArchitectureWidth'. VERBOSE: Exporting function 'Get-ToolsLocation'. VERBOSE: Exporting function 'Get-UACEnabled'. VERBOSE: Exporting function 'Get-UninstallRegistryKey'. VERBOSE: Exporting function 'Get-VirusCheckValid'. VERBOSE: Exporting function 'Get-WebFile'. VERBOSE: Exporting function 'Get-WebFileName'. VERBOSE: Exporting function 'Get-WebHeaders'. VERBOSE: Exporting function 'Install-BinFile'. VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. VERBOSE: Exporting function 'Install-ChocolateyPackage'. VERBOSE: Exporting function 'Install-ChocolateyPath'. VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. VERBOSE: Exporting function 'Install-ChocolateyShortcut'. VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. VERBOSE: Exporting function 'Install-Vsix'. VERBOSE: Exporting function 'Set-EnvironmentVariable'. VERBOSE: Exporting function 'Set-PowerShellExitCode'. VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. VERBOSE: Exporting function 'Test-ProcessAdminRights'. VERBOSE: Exporting function 'Uninstall-BinFile'. VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. VERBOSE: Exporting function 'Update-SessionEnvironment'. VERBOSE: Exporting function 'Write-ChocolateyFailure'. VERBOSE: Exporting function 'Write-ChocolateySuccess'. VERBOSE: Exporting function 'Write-FileUpdateLog'. VERBOSE: Exporting alias 'Get-ProcessorBits'. VERBOSE: Exporting alias 'Get-OSBitness'. VERBOSE: Exporting alias 'Get-InstallRegistryKey'. VERBOSE: Exporting alias 'Generate-BinFile'. VERBOSE: Exporting alias 'Add-BinFile'. VERBOSE: Exporting alias 'Remove-BinFile'. VERBOSE: Exporting alias 'refreshenv'. VERBOSE: Importing function 'Format-FileSize'. VERBOSE: Importing function 'Get-ChecksumValid'. VERBOSE: Importing function 'Get-ChocolateyUnzip'. VERBOSE: Importing function 'Get-ChocolateyWebFile'. VERBOSE: Importing function 'Get-EnvironmentVariable'. VERBOSE: Importing function 'Get-EnvironmentVariableNames'. VERBOSE: Importing function 'Get-FtpFile'. VERBOSE: Importing function 'Get-OSArchitectureWidth'. VERBOSE: Importing function 'Get-ToolsLocation'. VERBOSE: Importing function 'Get-UACEnabled'. VERBOSE: Importing function 'Get-UninstallRegistryKey'. VERBOSE: Importing function 'Get-VirusCheckValid'. VERBOSE: Importing function 'Get-WebFile'. VERBOSE: Importing function 'Get-WebFileName'. VERBOSE: Importing function 'Get-WebHeaders'. VERBOSE: Importing function 'Install-BinFile'. VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'. VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'. VERBOSE: Importing function 'Install-ChocolateyFileAssociation'. VERBOSE: Importing function 'Install-ChocolateyInstallPackage'. VERBOSE: Importing function 'Install-ChocolateyPackage'. VERBOSE: Importing function 'Install-ChocolateyPath'. VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'. VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'. VERBOSE: Importing function 'Install-ChocolateyShortcut'. VERBOSE: Importing function 'Install-ChocolateyVsixPackage'. VERBOSE: Importing function 'Install-ChocolateyZipPackage'. VERBOSE: Importing function 'Install-Vsix'. VERBOSE: Importing function 'Set-EnvironmentVariable'. VERBOSE: Importing function 'Set-PowerShellExitCode'. VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'. VERBOSE: Importing function 'Test-ProcessAdminRights'. VERBOSE: Importing function 'Uninstall-BinFile'. VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'. VERBOSE: Importing function 'Uninstall-ChocolateyPackage'. VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'. VERBOSE: Importing function 'Update-SessionEnvironment'. VERBOSE: Importing function 'Write-ChocolateyFailure'. VERBOSE: Importing function 'Write-ChocolateySuccess'. VERBOSE: Importing function 'Write-FileUpdateLog'. VERBOSE: Importing alias 'Add-BinFile'. VERBOSE: Importing alias 'Generate-BinFile'. VERBOSE: Importing alias 'Get-InstallRegistryKey'. VERBOSE: Importing alias 'Get-OSBitness'. VERBOSE: Importing alias 'Get-ProcessorBits'. VERBOSE: Importing alias 'refreshenv'. VERBOSE: Importing alias 'Remove-BinFile'. Running 'ChocolateyScriptRunner' for OctopusDeploy.Tentacle v3.3.27 with packageScript 'C:\\ProgramData\\chocolatey\\lib\\OctopusDeploy.Tentacle\\chocolateyInstall.ps1', packageFolder:'C:\\ProgramData\\chocolatey\\lib\\OctopusDeploy.Tentacle', installArguments: '', packageParameters: '--allowEmptyChecksums', Running 'C:\\ProgramData\\chocolatey\\lib\\OctopusDeploy.Tentacle\\chocolateyInstall.ps1' Running 'Install-ChocolateyPackage' for OctopusDeploy.Tentacle with url:'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27.msi', args: '/quiet', fileType: 'msi', url64bit: 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi', checksum: '', checksumType: '', checksum64: '', checksumType64: '', validExitCodes: '0'  Running 'Get-ChocolateyWebFile' for OctopusDeploy.Tentacle with url:'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27.msi', fileFullPath:'C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\OctopusDeploy.TentacleInstall.msi', url64bit:'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi', checksum: '', checksumType: '', checksum64: '', checksumType64: '' Running 'Get-OSArchitectureWidth' CPU is 64 bit Setting url to 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi' and bitPackage to 64 Running 'Get-WebFileName' to determine name with url:'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi', defaultName:'OctopusDeploy.TentacleInstall.msi' Using response url to determine file name. 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi' File name determined from url is 'Octopus.Tentacle.3.3.27-x64.msi' Running 'Get-WebHeaders' with url:'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi', userAgent: 'chocolatey command line' Setting the UserAgent to 'chocolatey command line' Request Headers:   'Accept':'*/*'   'User-Agent':'chocolatey command line' Response Headers:   'Connection':'keep-alive'   'X-Cache':'Hit from cloudfront'   'X-Amz-Cf-Id':'lUMnf4cQjLiTFtJMgTKkRVSmh0RPJzbqy_lNWSxqFDxPss9I6xBRgQ=='   'CF-Cache-Status':'HIT'   'CF-RAY':'2d0fc617ae2004ce-SYD'   'Accept-Ranges':'bytes'   'Content-Length':'3260416'   'Cache-Control':'public, max-age=14400'   'Content-Type':'binary/octet-stream'   'Date':'Fri, 12 Aug 2016 00:22:35 GMT'   'Expires':'Fri, 12 Aug 2016 04:22:35 GMT'   'ETag':'\"b265bcc9bd1701c6d9d55c8cda3a7b44\"'   'Last-Modified':'Thu, 11 Aug 2016 07:39:26 GMT'   'Set-Cookie':'__cfduid=df3212bc7b61a1864572e8832c47e1b4b1470961355; expires=Sat, 12-Aug-17 00:22:35 GMT; path=/; domain=.octopusdeploy.com; HttpOnly'   'Server':'cloudflare-nginx'   'Via':'1.1 b4479f202bc7050d8c458896bb43d335.cloudfront.net (CloudFront)' OctopusDeploy.Tentacle's requested file has already been downloaded. Using cached copy at   'C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\Octopus.Tentacle.3.3.27-x64.msi'. No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare Checking that 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\Octopus.Tentacle.3.3.27-x64.msi' is the size we expect it to be. Verifying package provided checksum of '' for 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\Octopus.Tentacle.3.3.27-x64.msi'. Running 'Get-ChecksumValid' with file:'C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\Octopus.Tentacle.3.3.27-x64.msi', checksum: '', checksumType: '', originalUrl: 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi' WARNING: Missing package checksums are not allowed (by default for HTTP/FTP,   HTTPS when feature 'allowEmptyChecksumsSecure' is disabled) for   safety and security reasons. Although we strongly advise against it,   if you need this functionality, please set the feature   'allowEmptyChecksums' ('choco feature enable -n   allowEmptyChecksums')   or pass in the option '--allow-empty-checksums'. If you are a maintainer attempting to determine the checksum for packaging purposes, please run   'choco install checksum' and run 'checksum -t sha256 -f C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\OctopusDeploy.Tentacle\\3.3.27\\Octopus.Tentacle.3.3.27-x64.msi'   Ensure you do this for all remote resources. The integrity of the file 'Octopus.Tentacle.3.3.27-x64.msi' from 'http://download.octopusdeploy.com/octopus/Octopus.Tentacle.3.3.27-x64.msi' has not been verified by a checksum in the package scripts. Do you wish to allow the install to continue (not recommended)? [Y] Yes [N] No (default is \"N\")   Confirmation (`-y`) is set.   Respond within 30 seconds or the default selection will be chosen. ERROR: Empty checksums are no longer allowed by default for non-secure sources. Please ask the maintainer to add checksums to this package. In the meantime if you need this package to work correctly, please enable the feature allowEmptyChecksums or provide the runtime switch '--allowEmptyChecksums'. We strongly advise against allowing empty checksums for HTTP/FTP sources.  at Get-ChecksumValid, C:\ProgramData\chocolatey\helpers\functions\Get-CheckSumValid.ps1: line 160 at Get-ChocolateyWebFile, C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1: line 334 at Install-ChocolateyPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyPackage.ps1: line 274 at <ScriptBlock>, C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1: line 1 at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 48 at <ScriptBlock>, <No file>: line 1 Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1' -installArguments '' -packageParameters '--allowEmptyChecksums''] exited with '-1'. Calling command ['\"C:\Windows\System32\shutdown.exe\" /a'] Command ['\"C:\Windows\System32\shutdown.exe\" /a'] exited with '1116' Capturing package files in 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle'  Found 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\.chocolateyPending'   with checksum 'EB452F7D051D18B72C4954BF74A53A63'  Found 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1'   with checksum '20BB3656586156E51BAE4B969D260D9F'  Found 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\OctopusDeploy.Tentacle.nupkg'   with checksum '9253E33490E5B2138BB82FD95EF847D1'  Found 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\OctopusDeploy.Tentacle.nuspec'   with checksum 'AE690584267A5E60CE115D2BCB4DE4E1' Attempting to delete file \"C:\ProgramData\chocolatey\.chocolatey\OctopusDeploy.Tentacle.3.3.27\.files.update\". Attempting to delete file \"C:\ProgramData\chocolatey\.chocolatey\OctopusDeploy.Tentacle.3.3.27\.sxs\". Attempting to delete file \"C:\ProgramData\chocolatey\.chocolatey\OctopusDeploy.Tentacle.3.3.27\.pin\". Attempting to delete directory \"C:\ProgramData\chocolatey\lib-bad\OctopusDeploy.Tentacle\". Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... The install of octopusdeploy.tentacle was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1'.  See log for details. Moving 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle'  to 'C:\ProgramData\chocolatey\lib-bad\OctopusDeploy.Tentacle' Attempting to delete file \"C:\Users\Administrator\AppData\Local\NuGet\Cache\OctopusDeploy.Tentacle.3.3.27.nupkg\".  Chocolatey installed 0/1 packages. 1 packages failed.  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).  Failures  - octopusdeploy.tentacle (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\OctopusDeploy.Tentacle\chocolateyInstall.ps1'.  See log for details. Sending message 'PostRunMessage' out if there are subscribers... Exiting with -1", 
    "failed": true, 
    "invocation": {
        "module_name": "win_chocolatey"
    }, 
    "msg": "Error installing octopusdeploy.tentacle"
}

```
<!--- Paste verbatim command output between quotes below -->
```

```
```



Discussion:
<!-- @Greyeye: Thanks for filing this bug report! -->

@smadam813 ping, this issue is waiting for your response.
[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)

<!--- boilerplate: issue_bug_new --->


Resolving patch:
diff --git a/windows/win_chocolatey.py b/windows/win_chocolatey.py
--- a/windows/win_chocolatey.py
+++ b/windows/win_chocolatey.py
@@ -80,6 +80,18 @@
     require: false
     default: null
     version_added: '2.1'
+  allow_empty_checksums:
+    description:
+      - Allow empty Checksums to be used 
+    require: false
+    default: false
+    version_added: '2.2'
+  ignore_checksums:
+    description:
+      - Ignore Checksums 
+    require: false
+    default: false
+    version_added: '2.2'      
   ignore_dependencies:
     description:
       - Ignore dependencies, only install/upgrade the package itself


Test patch: