tell apt to use the proxy on all machines connected to the vpn
parent
560c50fe5b
commit
614fe79fa4
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: vpn, !tests,
|
||||
roles:
|
||||
- client_apt_proxy
|
||||
|
||||
- hosts: all, !tests,
|
||||
roles:
|
||||
- base_config
|
||||
- create_users
|
||||
- ssh_totp
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Tell apt to use the proxy
|
||||
template:
|
||||
src: "00aptproxy.j2"
|
||||
dest: "/etc/apt/apt.conf.d/00aptproxy"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '644'
|
@ -0,0 +1,3 @@
|
||||
{{ ansible_managed | comment }}
|
||||
Acquire::http::Proxy "http://{{ apt_proxy_address }}:{{ apt_proxy_port }}/";
|
||||
|
Loading…
Reference in New Issue