$result.reboot_required = $feature_result.RestartNeeded (#56419)
* $result.reboot_required = $feature_result.RestartNeeded * Update relevent PSLint ignores * CI Problem with pslint and ignore.txt
This commit is contained in:
parent
c6ba5eb8a0
commit
f137527201
3 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ Function Ensure-Prereqs {
|
||||||
|
|
||||||
# NOTE: AD-Domain-Services includes: RSAT-AD-AdminCenter, RSAT-AD-Powershell and RSAT-ADDS-Tools
|
# NOTE: AD-Domain-Services includes: RSAT-AD-AdminCenter, RSAT-AD-Powershell and RSAT-ADDS-Tools
|
||||||
$awf = Add-WindowsFeature AD-Domain-Services -WhatIf:$check_mode
|
$awf = Add-WindowsFeature AD-Domain-Services -WhatIf:$check_mode
|
||||||
|
$result.reboot_required = $awf.RestartNeeded
|
||||||
# FUTURE: Check if reboot necessary
|
# FUTURE: Check if reboot necessary
|
||||||
return $true
|
return $true
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ Function Ensure-FeatureInstallation {
|
||||||
|
|
||||||
Write-DebugLog "Ensuring required Windows features are installed..."
|
Write-DebugLog "Ensuring required Windows features are installed..."
|
||||||
$feature_result = Install-WindowsFeature $required_features
|
$feature_result = Install-WindowsFeature $required_features
|
||||||
|
$result.reboot_required = $feature_result.RestartNeeded
|
||||||
|
|
||||||
If(-not $feature_result.Success) {
|
If(-not $feature_result.Success) {
|
||||||
Exit-Json -message ("Error installing AD-Domain-Services and RSAT-ADDS features: {0}" -f ($feature_result | Out-String))
|
Exit-Json -message ("Error installing AD-Domain-Services and RSAT-ADDS features: {0}" -f ($feature_result | Out-String))
|
||||||
|
|
|
@ -48,7 +48,6 @@ lib/ansible/modules/windows/win_dns_client.ps1 PSUseApprovedVerbs
|
||||||
lib/ansible/modules/windows/win_dns_client.ps1 PSUseDeclaredVarsMoreThanAssignments
|
lib/ansible/modules/windows/win_dns_client.ps1 PSUseDeclaredVarsMoreThanAssignments
|
||||||
lib/ansible/modules/windows/win_domain.ps1 PSAvoidUsingEmptyCatchBlock
|
lib/ansible/modules/windows/win_domain.ps1 PSAvoidUsingEmptyCatchBlock
|
||||||
lib/ansible/modules/windows/win_domain.ps1 PSUseApprovedVerbs
|
lib/ansible/modules/windows/win_domain.ps1 PSUseApprovedVerbs
|
||||||
lib/ansible/modules/windows/win_domain.ps1 PSUseDeclaredVarsMoreThanAssignments
|
|
||||||
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidGlobalVars
|
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidGlobalVars
|
||||||
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidTrailingWhitespace
|
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidTrailingWhitespace
|
||||||
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidUsingWMICmdlet
|
lib/ansible/modules/windows/win_domain_controller.ps1 PSAvoidUsingWMICmdlet
|
||||||
|
|
Loading…
Reference in a new issue