win_domain_controller fails with required parameter error #35858
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
windows
Windows community
ISSUE TYPE
COMPONENT NAME
win_domain_controller
ANSIBLE VERSION
CONFIGURATION
DEFAULT_FORKS(/vagrant/cloudops-ansible/ansible.cfg) = 10
OS / ENVIRONMENT
Windows Server 2016 target
SUMMARY
The win_domain_controller module uses the Install-ADDSDomainController Powershell cmdlet. If the -ReadOnlyReplica switch is used with this cmdlet, regardless of whether it is set to true or false, the SiteName parameter is required. The way the parameters are populated causes the module to fail unless the read_only and SiteName are supplied.
STEPS TO REPRODUCE
EXPECTED RESULTS
target windows host joins domain as a domain controller
ACTUAL RESULTS
Ansible fails with error:
The text was updated successfully, but these errors were encountered: