> On Jun 11, 2019, at 4:49 PM, Jordan Borean <[email protected]> wrote:
> 
> Identifying hangs aren't easy but without knowing the full story is next to 
> impossible. From what you are saying the problem looks like it is happening 
> on the execution side and unrelated to the Ansible controller so debugging 
> the Python process probably won't give you any good information.


So how does the win_chocolatey module interactive with chocolatey packages what 
use something like AutoIt for post-install configuration?

(Linux guy here) so does Windows have something like a controlling tty?

Doing some debugging and I think the hang is on upgrading a package called 
CleanUp! (which I do maintain) <https://chocolatey.org/packages/cleanup> and 
the chocolateyintall.ps1 uses AutoIt

$ErrorActionPreference = 'Stop'; 

$packageName = 'CleanUp'
$version     = '452'
$fullPackage = $packageName + $version + '.exe'
$url         = 'http://stevengould.org/downloads/cleanup/' + $fullPackage
$checkSum    = 
'6ac7576c0b48ddee292f85724c7917e11360927ff8e5c5a8d795577a4241c131'
$workSpace   = Join-Path $env:TEMP "$packageName-$env:chocolateyPackageVersion"

# silent install requires AutoIT
#
$autoitExe    = 'AutoIt3.exe'
$toolsDir     = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$autoitFile   = Join-Path $toolsDir 'cleanup.au3'
$fileFullPath = Join-Path $workSpace $fullPackage

$autoitProcess = Start-Process -FilePath $autoitExe -ArgumentList "$autoitFile 
$fileFullPath" -PassThru

$installArgs = @{
   softwareName   = 'CleanUp*'
   packageName    = $packageName
   file           = Join-Path $workSpace $fullPackage
   url            = $url
   checksum       = $checkSum
   checksumType   = 'sha256'
   fileType       = 'exe'
   silentArgs     = "/qn /norestart /l*v 
`"$($env:TEMP)\$($packageName)-$($env:chocolateyPackageVersion).MsiInstall.log`"
 ALLUSERS=1"
   validExitCodes = @(0, 3010, 1641)
}

Install-ChocolateyPackage @installArgs

Installing the package at the console or upgrading the package at the console 
all works as expected.

But trying to install or upgrade the package via Ansible and win_chocolatey I 
see both "CleanUp452.exe *32" and "AutoIt3.exe *32” in Task Manager as well as 
powershell.exe and choice.exe.

IF remove cancel out (control-c) the Ansible process on the management host and 
I do a “choco list -lo” on the managed host I get a warning:

“[Pending] Removing incomplete install for ‘cleanup’”

That would seem to hint that the chocolatey was processing the CleanUp! package?

Any recommendations on what to try/do next?

--
Bob Tanner <[email protected]>          Clash of Clan Tag: #LUJ2CPU
Follow me on Facebook <http://on.fb.me/igBSwK> and Twitter 
<http://bit.ly/gjJCwJ>!  Clash Royale Tag: #2Q98YPC

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6144A9B9-E8C3-4772-BEB9-E46293CD7FF6%40tanners.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to