Create GPO to configure proxy for clients

This commit is contained in:
abrown38 committed 2024-09-02 13:19:29 +01:00
1 parent 5908fdda34
commit fa36aa5983
3 files changed
+36

No files matched your search

@@ -120,3 +120,23 @@
win_shell: powershell C:\eidf\{{ server_hardening_script }}
tags: apply_hardening_scripts
when: inventory_hostname in groups['meta-name_dc01']
- name: Squid Proxy GPO Script
tags: proxy_script
block:
- name: Copy Squid GPO Script
vars:
proxy_vm: "{{ os_project }}-{{ win_project }}-proxy"
proxy_address: "{{ hostvars[proxy_vm].ansible_host }}:3128"
ansible.builtin.template:
src: "{{ squid_proxy_script_tmpl }}"
dest: "{{ script_dir }}\\{{ squid_proxy_script }}"
force: true
tags: copy_proxy_script
- name: Apply Squid GPO Script
win_shell: "powershell {{ script_dir }}\\{{ squid_proxy_script }}"
tags: create_proxy_gpo
when: |
inventory_hostname in groups['meta-name_dc01'] and
project_zone == 'protected'