mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:47:21 +00:00
New scripts and use symlink to avoid changes between versions
This commit is contained in:
1 parent
16e0932ed1
commit
92491b6337
8 files changed
+437
-975
No files matched your search
@@ -1,34 +1,4 @@
|
||||
---
|
||||
- name: Group policy script
|
||||
tags: gpo_script
|
||||
block:
|
||||
- name: Copy Group Policy script to DC01
|
||||
win_copy:
|
||||
src: "{{ group_policy_script }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: copy_gpo_script
|
||||
|
||||
- name: Apply group policy
|
||||
win_shell: powershell C:\eidf\{{ group_policy_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
|
||||
tags: promote_dc01
|
||||
block:
|
||||
@@ -112,6 +82,36 @@
|
||||
when: dc02_promotion.reboot_required | default(false) == true
|
||||
when: inventory_hostname in groups['meta-name_dc02']
|
||||
|
||||
- name: Group policy script
|
||||
tags: gpo_script
|
||||
block:
|
||||
- name: Copy Group Policy script to DC01
|
||||
win_copy:
|
||||
src: "{{ group_policy_script }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: copy_gpo_script
|
||||
|
||||
- name: Apply group policy
|
||||
win_shell: powershell C:\eidf\{{ group_policy_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: Copy ADMX/ADML files
|
||||
tags: copy_admx
|
||||
block:
|
||||
|
||||
Reference in new issue
Block a user