The below playbook does not have sufficient verification that the forest is operational before proceeding. Resulting in one of the following errors but will resolve itself if you wait ~10min and try again.
fatal: [win1]: FAILED! => {"changed": true, "msg": "Failed to install ADDSForest, DCPromo exited with 77: The specified argument 'InstallDNS' was not recognized.\r\n", "reboot_required": false}
failed: [win1] (item={'name': 'GroupA'}) => {"ansible_loop_var": "item", "changed": false, "created": false, "item": {"name": "GroupA"}, "msg": "failed to retrieve initial details for group GroupA: Unable to find a default server with Active Directory Web Services running."}
The below playbook does not have sufficient verification that the forest is operational before proceeding. Resulting in one of the following errors but will resolve itself if you wait ~10min and try again.
https://github.com/RedHatGov/product-demos/blob/main/windows/create_ad_domain.yml