set proxy before software install

This commit is contained in:
abrown38 committed 2024-09-02 16:26:14 +01:00
1 parent 2c8c80d5a5
commit 1e4b9eec5a
1 file changed
+12
@@ -29,6 +29,18 @@
- name: Client Packages
tags: client_packages
block:
- name: Set a proxy
vars:
proxy_ip: "{{ os_project }}-{{ win_project }}-proxy"
tags: choco_proxy
win_inet_proxy:
proxy: "{{ hostvars[proxy_ip].ansible_host }}:3128"
bypass:
- <local>
when: |
inventory_hostname in groups['meta-type_client'] and
project_zone == 'protected'
- name: Install Chocolatey GUI
win_chocolatey:
name: ChocolateyGUI