diff options
author | uvok cheetah | 2023-08-10 18:09:00 +0200 |
---|---|---|
committer | uvok cheetah | 2023-08-10 18:09:00 +0200 |
commit | cdd474a036244380c6e6dad589e5ede752c8f89b (patch) | |
tree | 1bc1cf3741b10f7c38563352551c5e5bb3ffd2ea | |
parent | 0a5a32e456858ada313e2c6d3ed12b75d8f93573 (diff) |
Ensure APT proxy
-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"; } |