Move ADMX task to start. copy failed after promotion, files were open

This commit is contained in:
abrown38 committed 2024-08-14 16:17:44 +01:00
1 parent b87daf4765
commit 335f9ad923
1 file changed
+9 -10
@@ -1,4 +1,13 @@
---
- 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
tags: promote_dc01
block:
@@ -111,13 +120,3 @@
win_shell: powershell C:\eidf\{{ server_hardening_script }}
tags: apply_hardening_scripts
when: inventory_hostname in groups['meta-name_dc01']
- 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