diff options
-rw-r--r-- | apt_proxy.yml | 11 | ||||
-rw-r--r-- | files/apt_proxy.conf | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/apt_proxy.yml b/apt_proxy.yml new file mode 100644 index 0000000..6aeabe6 --- /dev/null +++ b/apt_proxy.yml @@ -0,0 +1,11 @@ +--- +- name: Setup APT proxy + hosts: vms,!srv-aptcache.lan + tasks: + - name: Copy APT config + copy: + src: files/apt_proxy.conf + dest: /etc/apt/apt.conf.d/proxy + mode: 0640 + force: no + backup: yes diff --git a/files/apt_proxy.conf b/files/apt_proxy.conf new file mode 100644 index 0000000..a0fb072 --- /dev/null +++ b/files/apt_proxy.conf @@ -0,0 +1 @@ +Acquire::http { Proxy "http://192.168.30.6:3142"; } |