From cdd474a036244380c6e6dad589e5ede752c8f89b Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Thu, 10 Aug 2023 18:09:00 +0200 Subject: Ensure APT proxy --- apt_proxy.yml | 11 +++++++++++ files/apt_proxy.conf | 1 + 2 files changed, 12 insertions(+) create mode 100644 apt_proxy.yml create mode 100644 files/apt_proxy.conf 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"; } -- cgit v1.2.3