|
|
@ -77,6 +77,7 @@ $psversion = $PSVersionTable.PSVersion.Major
|
|
|
|
Set-Attr $result.ansible_facts "ansible_powershell_version" $psversion
|
|
|
|
Set-Attr $result.ansible_facts "ansible_powershell_version" $psversion
|
|
|
|
|
|
|
|
|
|
|
|
$winrm_https_listener_parent_path = Get-ChildItem -Path WSMan:\localhost\Listener -Recurse | Where-Object {$_.PSChildName -eq "Transport" -and $_.Value -eq "HTTPS"} | select PSParentPath
|
|
|
|
$winrm_https_listener_parent_path = Get-ChildItem -Path WSMan:\localhost\Listener -Recurse | Where-Object {$_.PSChildName -eq "Transport" -and $_.Value -eq "HTTPS"} | select PSParentPath
|
|
|
|
|
|
|
|
$winrm_https_listener_path = $null
|
|
|
|
|
|
|
|
|
|
|
|
if ($winrm_https_listener_parent_path ) {
|
|
|
|
if ($winrm_https_listener_parent_path ) {
|
|
|
|
$winrm_https_listener_path = $winrm_https_listener_parent_path.PSParentPath.Substring($winrm_https_listener_parent_path.PSParentPath.LastIndexOf("\"))
|
|
|
|
$winrm_https_listener_path = $winrm_https_listener_parent_path.PSParentPath.Substring($winrm_https_listener_parent_path.PSParentPath.LastIndexOf("\"))
|
|
|
|