asc.xhack.lab_dc01 role – Deploy the lab Active Directory domain controller
Note
This role is part of the asc.xhack collection (version 2.0.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/xhack $HOME/.ansible/collections/ansible_collections/asc/xhack.
To use it in a playbook, specify: asc.xhack.lab_dc01.
Entry point main – Deploy the lab Active Directory domain controller
New in asc.xhack 1.0.0
Synopsis
Deploys a Windows Server VM, promotes it to a domain controller and creates the eXtreme Hacking lab’s Active Directory domain.
It builds out the directory the lab attacks run against - the organizational units (including the
WorkstationsOU the lab clients are joined into), groups and users defined inlab_dc01_root_domain_ous,lab_dc01_root_domain_groupsandlab_dc01_root_domain_users.
Parameters
Parameter |
Comments |
|---|---|
‘lab_dc01’ role configuration |
|
Whether to enable the lab_dc01 role Choices:
|
|
Name of the VM to deploy Default: |
|
Size of the VM to deploy (Azure VM size) Default: |
|
Configuration of the root domain |
|
Forest mode of the root domain Default: |
|
FQDN of the root domain Default: |
|
Mode of the root domain Default: |
|
NetBIOS name of the root domain Default: |
|
Base Organizational Unit for the root domain Default: |
|
Active Directory groups to create, keyed by group name. Each group takes |
|
Organizational Units to create in the root domain See example config file for more details Default: |
|
Active Directory users to create, keyed by sAMAccountName. Each user takes |