asc.xhack.lab_dc01 role – Deploy a new domain and domain controller

Note

This role is part of the asc.xhack collection (version 1.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 a new domain and domain controller

New in asc.xhack 1.0.0

Synopsis

  • Deploys a server with the eXtreme Hacking demo applications

Parameters

Parameter

Comments

lab_dc01

dictionary

‘lab_dc01’ role configuration

enabled

boolean

Whether to enable the lab_dc01 role

Choices:

  • false ← (default)

  • true

vm_name

string

Name of the VM to deploy

Default: "vmdc01"

vm_size

string

Size of the VM to deploy (Azure VM size)

Default: "Standard_B2ms"

root_domain

dictionary

Configuration of the root domain

forest_mode

string

Forest mode of the root domain

Default: "Win2012R2"

fqdn

string

FQDN of the root domain

Default: "xhack.lab"

mode

string

Mode of the root domain

Default: "Win2012R2"

netbios_name

string

NetBIOS name of the root domain

Default: "XHACK"

ou

string

Base Organizational Unit for the root domain

Default: "DC=xhack,DC=lab"

root_domain_ous

dictionary

Organizational Units to create in the root domain See example config file for more details

Default: {"Departments": {"description": "Departments", "path": "{{ root_domain.ou }}"}, "Finance": {"description": "Finance department", "path": "OU=Departments,{{ root_domain.ou }}"}, "HR": {"description": "HR department", "path": "OU=Departments,{{ root_domain.ou }}"}, "IT": {"description": "IT department", "path": "OU=Departments,{{ root_domain.ou }}"}}

Authors

  • Lorenzo Bernardi