mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-28 23:37:21 +00:00
Create GPO to map study drive
This commit is contained in:
1 parent
621d97fb63
commit
c40e256a9f
3 files changed
+55
-2
No files matched your search
@@ -24,7 +24,7 @@
|
||||
- name: Copy ADMX and ADML files to DCs
|
||||
win_copy:
|
||||
src: policy_templates/PolicyDefinitions
|
||||
dest: "C:\\Windows\\SYSVOL\\sysvol\\{{ win_project }}.loc\\policies\\"
|
||||
dest: "{{ policy_path }}\\"
|
||||
force: true
|
||||
|
||||
- name: Rebooting DC01 post promotion to domain controller
|
||||
@@ -162,7 +162,7 @@
|
||||
vars:
|
||||
proxy_vm: "{{ os_project }}-{{ win_project }}-proxy"
|
||||
proxy_address: "{{ hostvars[proxy_vm].ansible_host }}:3128"
|
||||
ansible.builtin.template:
|
||||
ansible.windows.win_template:
|
||||
src: "{{ squid_proxy_script_tmpl }}"
|
||||
dest: "{{ script_dir }}\\{{ squid_proxy_script }}"
|
||||
force: true
|
||||
@@ -174,3 +174,18 @@
|
||||
when: |
|
||||
inventory_hostname in groups['meta-name_dc01'] and
|
||||
project_zone == 'protected'
|
||||
|
||||
- name: Mapped Drive GPO Script
|
||||
tags: mapped_drive_script
|
||||
block:
|
||||
- name: Copy Mapped Drive GPO Script
|
||||
ansible.windows.win_template:
|
||||
src: "{{ mapped_drive_script_tmpl }}"
|
||||
dest: "{{ script_dir }}\\{{ mapped_drive_script }}"
|
||||
force: true
|
||||
tags: copy_mapped_drive_script
|
||||
|
||||
- name: Apply Mapped Drive GPO Script
|
||||
win_shell: "powershell {{ script_dir }}\\{{ mapped_drive_script }}"
|
||||
tags: create_mapped_drive_gpo
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
Reference in new issue
Block a user