mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
win_domain: added option to set database and sysvol path (#34333)
* win_domain: added param to set database and sysvol path * fixed up documentation to work with backslashes
This commit is contained in:
parent
dacd4c4a68
commit
38a31d3156
4 changed files with 48 additions and 5 deletions
|
@ -39,6 +39,8 @@ $parsed_args = Parse-Args $args -supports_check_mode $true
|
|||
$check_mode = Get-AnsibleParam $parsed_args "_ansible_check_mode" -default $false
|
||||
$dns_domain_name = Get-AnsibleParam $parsed_args "dns_domain_name" -failifempty $true
|
||||
$safe_mode_admin_password = Get-AnsibleParam $parsed_args "safe_mode_password" -failifempty $true
|
||||
$database_path = Get-AnsibleParam $parsed_args "database_path" -type "path"
|
||||
$sysvol_path = Get-AnsibleParam $parsed_args "sysvol_path" -type "path"
|
||||
|
||||
$forest = $null
|
||||
|
||||
|
@ -72,6 +74,12 @@ If(-not $forest) {
|
|||
InstallDNS=$true;
|
||||
NoRebootOnCompletion=$true;
|
||||
}
|
||||
if ($database_path) {
|
||||
$install_forest_args.DatabasePath = $database_path
|
||||
}
|
||||
if ($sysvol_path) {
|
||||
$install_forest_args.SysvolPath = $sysvol_path
|
||||
}
|
||||
|
||||
$iaf = Install-ADDSForest @install_forest_args
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue