Cannot seem to win!
chocolatey_msu:
-
rsat
-
name: Install host specific msu (choco)
win_chocolatey:
name: “{{ item }}”
state: “present”
when:
-
host_chocolatey_msu is defined
with_items:
-
“{{ host_chocolatey_msu }}”
vars:
ansible_become: yes
ansible_become_method: runas
ansible_become_user: SYSTEM
“stdout_lines”: [
“Chocolatey v0.10.10”,
“Installing the following packages:”,
“rsat”,
“By installing you accept licenses for the packages.”,
“[NuGet] Installing ‘RSAT 2.1’.”,
“[NuGet] Successfully installed ‘RSAT 2.1’.”,
“”,
“RSAT v2.1 [Approved]”,
“rsat package files install completed. Performing other installation steps.”,
“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-PackageParameters’.”,
“VERBOSE: Exporting function ‘Get-PackageParametersBuiltIn’.”,
“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 function ‘Write-FunctionCallLogMessage’.”,
“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 ‘Start-ChocolateyProcess’.”,
“VERBOSE: Exporting alias ‘Invoke-ChocolateyProcess’.”,
“VERBOSE: Exporting alias ‘Remove-BinFile’.”,
“VERBOSE: Exporting alias ‘refreshenv’.”,
“VERBOSE: Loading module from path ‘C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1’.”,
“VERBOSE: Exporting function ‘Get-UninstallRegistryKey’.”,
“VERBOSE: Exporting function ‘Get-AppInstallLocation’.”,
“VERBOSE: Exporting function ‘Get-AvailableDriveLetter’.”,
“VERBOSE: Exporting function ‘Get-EffectiveProxy’.”,
“VERBOSE: Exporting function ‘Get-PackageCacheLocation’.”,
“VERBOSE: Exporting function ‘Get-PackageParameters’.”,
“VERBOSE: Exporting function ‘Get-WebContent’.”,
“VERBOSE: Exporting function ‘Register-Application’.”,
“VERBOSE: Importing function ‘Get-AppInstallLocation’.”,
“VERBOSE: Importing function ‘Get-AvailableDriveLetter’.”,
“VERBOSE: Importing function ‘Get-EffectiveProxy’.”,
“VERBOSE: Importing function ‘Get-PackageCacheLocation’.”,
“VERBOSE: Importing function ‘Get-PackageParameters’.”,
“VERBOSE: Importing function ‘Get-UninstallRegistryKey’.”,
“VERBOSE: Importing function ‘Get-WebContent’.”,
“VERBOSE: Importing function ‘Register-Application’.”,
“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-PackageParameters’.”,
“VERBOSE: Exporting function ‘Get-PackageParametersBuiltIn’.”,
“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 function ‘Write-FunctionCallLogMessage’.”,
“VERBOSE: Exporting function ‘Get-AppInstallLocation’.”,
“VERBOSE: Exporting function ‘Get-AvailableDriveLetter’.”,
“VERBOSE: Exporting function ‘Get-EffectiveProxy’.”,
“VERBOSE: Exporting function ‘Get-PackageCacheLocation’.”,
“VERBOSE: Exporting function ‘Get-WebContent’.”,
“VERBOSE: Exporting function ‘Register-Application’.”,
“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 ‘Start-ChocolateyProcess’.”,
“VERBOSE: Exporting alias ‘Invoke-ChocolateyProcess’.”,
“VERBOSE: Exporting alias ‘Remove-BinFile’.”,
“VERBOSE: Exporting alias ‘refreshenv’.”,
“VERBOSE: Importing function ‘Format-FileSize’.”,
“VERBOSE: Importing function ‘Get-AppInstallLocation’.”,
“VERBOSE: Importing function ‘Get-AvailableDriveLetter’.”,
“VERBOSE: Importing function ‘Get-ChecksumValid’.”,
“VERBOSE: Importing function ‘Get-ChocolateyUnzip’.”,
“VERBOSE: Importing function ‘Get-ChocolateyWebFile’.”,
“VERBOSE: Importing function ‘Get-EffectiveProxy’.”,
“VERBOSE: Importing function ‘Get-EnvironmentVariable’.”,
“VERBOSE: Importing function ‘Get-EnvironmentVariableNames’.”,
“VERBOSE: Importing function ‘Get-FtpFile’.”,
“VERBOSE: Importing function ‘Get-OSArchitectureWidth’.”,
“VERBOSE: Importing function ‘Get-PackageCacheLocation’.”,
“VERBOSE: Importing function ‘Get-PackageParameters’.”,
“VERBOSE: Importing function ‘Get-PackageParametersBuiltIn’.”,
“VERBOSE: Importing function ‘Get-ToolsLocation’.”,
“VERBOSE: Importing function ‘Get-UACEnabled’.”,
“VERBOSE: Importing function ‘Get-UninstallRegistryKey’.”,
“VERBOSE: Importing function ‘Get-VirusCheckValid’.”,
“VERBOSE: Importing function ‘Get-WebContent’.”,
“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 ‘Register-Application’.”,
“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 function ‘Write-FunctionCallLogMessage’.”,
“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 ‘Invoke-ChocolateyProcess’.”,
“VERBOSE: Importing alias ‘refreshenv’.”,
“VERBOSE: Importing alias ‘Remove-BinFile’.”,
“VERBOSE: Importing alias ‘Start-ChocolateyProcess’.”,
“Windows 10 Detected”,
“VERBOSE: GET https://www.microsoft.com//download/confirmation.aspx?id=45520 with 0-byte payload”,
“VERBOSE: received 142462-byte response of content type text/html”,
“x64 Detected”,
“ERROR: Cannot process argument transformation on parameter ‘url64bit’. Cannot convert value to type System.String.”,
“The install of rsat was NOT successful.”,
“Error while running ‘C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1’.”,
" See log for details.“,
“”,
“Chocolatey installed 0/1 packages. 1 packages failed.”,
" See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).”,
“”,
“Failures”,
" - rsat (exited -1) - Error while running ‘C:\ProgramData\chocolatey\lib\RSAT\tools\chocolateyinstall.ps1’.“,
" See log for details.”
]
}