mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:37:21 +00:00
update GPO script and add hardening script
This commit is contained in:
1 parent
225e5dcf71
commit
3a54a886e6
4 files changed
+571
-3
No files matched your search
@@ -7,11 +7,26 @@
|
||||
src: "{{ group_policy_script }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: copy_script
|
||||
tags: copy_gpo_script
|
||||
|
||||
- name: Apply group policy
|
||||
win_shell: powershell C:\eidf\{{ group_policy_script }}
|
||||
tags: apply_script
|
||||
tags: apply_gpo_script
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
|
||||
- name: Server Hardening script
|
||||
tags: hardening_script
|
||||
block:
|
||||
- name: Copy Server Hardening script to DC01
|
||||
win_copy:
|
||||
src: "{{ server_hardening_script }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: copy_hardening_script
|
||||
|
||||
- name: Apply server hardening
|
||||
win_shell: powershell C:\eidf\{{ server_hardening_script }}
|
||||
tags: apply_hardening_scripts
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
|
||||
- name: Promote DC01
|
||||
|
||||
Reference in new issue
Block a user