diff options
author | heqnx <root@heqnx.com> | 2025-07-17 18:08:37 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-17 18:08:37 +0300 |
commit | cbd285087e710a265bdddfb4521a39a57bc8702c (patch) | |
tree | f95919e8eba622b8a517ffa20a6880bd88cc5e03 /ansible/roles/dc03/tasks/main.yaml | |
parent | 156f392cd059a4f0de0b8ba2443eb2eeb1e1c41a (diff) | |
download | ansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.tar.gz ansible-active-directory-range-cbd285087e710a265bdddfb4521a39a57bc8702c.zip |
added tree and child domain
Diffstat (limited to 'ansible/roles/dc03/tasks/main.yaml')
-rw-r--r-- | ansible/roles/dc03/tasks/main.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ansible/roles/dc03/tasks/main.yaml b/ansible/roles/dc03/tasks/main.yaml new file mode 100644 index 0000000..e487caf --- /dev/null +++ b/ansible/roles/dc03/tasks/main.yaml @@ -0,0 +1,36 @@ +- name: wait for winrm to be available + ansible.builtin.wait_for: + host: "{{ ansible_host }}" + port: "{{ ansible_port }}" + timeout: 300 + delegate_to: localhost + +- name: execute init.ps1 + import_tasks: init.yaml + +- name: set hostname + import_tasks: set_hostname.yaml + +- name: reboot after hostname change + import_tasks: reboot.yaml + +- name: execute setup-child-domain.ps1 + import_tasks: setup_child_domain.yaml + +- name: reboot after domain setup + import_tasks: reboot.yaml + +- name: execute dc-wait-for-ready.ps1 + import_tasks: wait_for_ready.yaml + +- name: execute setup-defender-gpo.ps1 as domain admin + import_tasks: setup_defender_gpo.yaml + +- name: reboot after gpo setup + import_tasks: reboot.yaml + +- name: execute install-software.ps1 + import_tasks: install_software.yaml + +- name: execute cleanup.ps1 + import_tasks: cleanup.yaml |