summaryrefslogtreecommitdiff
path: root/ansible/roles/dc02/tasks/setup_tree_domain.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-17 18:08:37 +0300
committerheqnx <root@heqnx.com>2025-07-17 18:08:37 +0300
commitcbd285087e710a265bdddfb4521a39a57bc8702c (patch)
treef95919e8eba622b8a517ffa20a6880bd88cc5e03 /ansible/roles/dc02/tasks/setup_tree_domain.yaml
parent156f392cd059a4f0de0b8ba2443eb2eeb1e1c41a (diff)
downloadansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.tar.gz
ansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.zip
added tree and child domain
Diffstat (limited to 'ansible/roles/dc02/tasks/setup_tree_domain.yaml')
-rw-r--r--ansible/roles/dc02/tasks/setup_tree_domain.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/dc02/tasks/setup_tree_domain.yaml b/ansible/roles/dc02/tasks/setup_tree_domain.yaml
new file mode 100644
index 0000000..2067844
--- /dev/null
+++ b/ansible/roles/dc02/tasks/setup_tree_domain.yaml
@@ -0,0 +1,9 @@
+- name: execute setup-tree-domain.ps1
+ ansible.windows.win_shell: >
+ powershell.exe -ExecutionPolicy Bypass
+ -File C:\scripts\setup-tree-domain.ps1
+ -ParentForestRootDomain "{{ main_domain_name }}"
+ -NewTreeDomainName "{{ tree_domain_name }}"
+ -SafeModePassword "P4ssw0rd1234!"
+ -Username Administrator
+ -Password "{{ default_win_password }}"