copy templates after promotion

This commit is contained in:
abrown38 committed 2024-08-21 20:51:27 +01:00
1 parent 3abe6268e0
commit 81f9a7c080
1 file changed
+9 -9
@@ -1,13 +1,4 @@
--- ---
- name: Copy ADMX/ADML files
tags: copy_admx
block:
- name: Copy ADMX and ADML files to DCs
win_copy:
src: policy_templates/PolicyDefinitions
dest: "C:\\Windows\\SYSVOL\\sysvol\\{{ win_project }}.loc\\policies\\"
force: true
- name: Promote DC01 - name: Promote DC01
tags: promote_dc01 tags: promote_dc01
block: block:
@@ -27,6 +18,15 @@
- "127.0.0.1" - "127.0.0.1"
- "{{ hostvars[dc02_dns].ansible_host }}" - "{{ hostvars[dc02_dns].ansible_host }}"
- name: Copy ADMX/ADML files
tags: copy_admx
block:
- name: Copy ADMX and ADML files to DCs
win_copy:
src: policy_templates/PolicyDefinitions
dest: "C:\\Windows\\SYSVOL\\sysvol\\{{ win_project }}.loc\\policies\\"
force: true
- name: Rebooting DC01 post promotion to domain controller - name: Rebooting DC01 post promotion to domain controller
win_reboot: win_reboot:
reboot_timeout_sec: 1200 reboot_timeout_sec: 1200