summaryrefslogtreecommitdiff
path: root/ansible/roles/dc02/tasks/setup_tree_domain.yaml
diff options
context:
space:
mode:
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 }}"