diff options
author | heqnx <root@heqnx.com> | 2025-07-13 10:57:47 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-13 10:57:47 +0300 |
commit | 285c042610ea4b7fe77ddeff7a258c3bfd310668 (patch) | |
tree | f1aad91d0b3c98b2615f275b7aeed1b2a70d3d41 /ansible/roles/adcs01/tasks/main.yaml | |
parent | 79b262d6e75ad3ad7c2522a490446c4b72dc6232 (diff) | |
download | ansible-active-directory-range-285c042610ea4b7fe77ddeff7a258c3bfd310668.tar.gz ansible-active-directory-range-285c042610ea4b7fe77ddeff7a258c3bfd310668.zip |
added adcs role
Diffstat (limited to 'ansible/roles/adcs01/tasks/main.yaml')
-rw-r--r-- | ansible/roles/adcs01/tasks/main.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ansible/roles/adcs01/tasks/main.yaml b/ansible/roles/adcs01/tasks/main.yaml new file mode 100644 index 0000000..e3f8923 --- /dev/null +++ b/ansible/roles/adcs01/tasks/main.yaml @@ -0,0 +1,40 @@ +- 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: join domain and reboot + import_tasks: join_domain.yaml + +- name: execute setup-adcs.ps1 + import_tasks: setup_adcs.yaml + +- name: reboot after adcs setup + import_tasks: reboot.yaml + +- name: pause 5 minutes for adcs setup to complete + pause: + minutes: 5 + +- name: execute setup-adcs-esc.ps1 + import_tasks: setup_adcs_esc.yaml + +- name: reboot after adcs esc setup + import_tasks: reboot.yaml + +- name: execute install-software.ps1 + import_tasks: install_software.yaml + +- name: execute cleanup.ps1 + import_tasks: cleanup.yaml |