Hi Folks,

I am now trying to understand how ansible module execution happens on a 
Windows node. I've understood about the wrapper scripts and the json file 
which contains everything, but cannot find the starting point of the below 
code

begin {
$path = 
'C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1565881753.1183164-174629035055307\AnsiballZ_<module>.ps1'
$DebugPreference = "Continue"
$ErrorActionPreference = "Stop"
Set-StrictMode -Version 2
$fd = [System.IO.File]::Create($path)
$sha1 = [System.Security.Cryptography.SHA1CryptoServiceProvider]::Create()
$bytes = @() #initialize for empty file case
}
process {
$bytes = [System.Convert]::FromBase64String($input)
$sha1.TransformBlock($bytes, 0, $bytes.Length, $bytes, 0) | Out-Null
$fd.Write($bytes, 0, $bytes.Length)
}
end {
$sha1.TransformFinalBlock($bytes, 0, 0) | Out-Null
$hash = [System.BitConverter]::ToString($sha1.Hash).Replace("-", 
"").ToLowerInvariant()
$fd.Close()
Write-Output "{""sha1"":""$hash""}"
}



I am searching for the trigger point which give the automatic variable 
$input the encoded code.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/cc79d17b-e9f1-4aef-8c50-7de445f9a9e1%40googlegroups.com.

Reply via email to