mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:47:21 +00:00
set proxy before software install
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user