/ansible-ad

Primary LanguagePowerShell

Creating a new Active Directory Forest with Ansible

  • Active Directory Forest
  • Users
  • Groups
  • OUs
  • SPNs

Installing

pip install netaddr
ansible-galaxy collection install community.windows

Executing

ansible-playbook -i localhost, deploy_ad.yaml

Populate AD

If you want populate your brand new AD with random data, execute the command bellow

ansible-playbook -i localhost, deploy_ad_data.yaml

Deploy Windows Machine from scratch

Common error

objc[7453]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[7453]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

To solve this error run

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Inspiration