summaryrefslogtreecommitdiff
path: root/ansible/roles/dc01/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/dc01/tasks/main.yaml')
-rw-r--r--ansible/roles/dc01/tasks/main.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/ansible/roles/dc01/tasks/main.yaml b/ansible/roles/dc01/tasks/main.yaml
new file mode 100644
index 0000000..2ce79c9
--- /dev/null
+++ b/ansible/roles/dc01/tasks/main.yaml
@@ -0,0 +1,41 @@
+- name: wait for winrm to be available
+ ansible.builtin.wait_for:
+ host: "{{ ansible_host }}"
+ port: "{{ ansible_port }}"
+ timeout: 300
+ delegate_to: localhost
+ vars:
+ ansible_connection: local
+
+- 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-main-domain.ps1
+ import_tasks: setup_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 populate-ad.ps1
+ import_tasks: populate_ad.yaml
+
+- name: execute setup-gpo.ps1 as domain admin
+ import_tasks: setup_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