From e26085e0b6a2d4989f2a52bade7eec0a466224db Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Wed, 16 Apr 2025 01:03:21 -0500 Subject: [PATCH] add apt cache --- roles/mgmt/UpdateAllhosts.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/mgmt/UpdateAllhosts.yml b/roles/mgmt/UpdateAllhosts.yml index 815b9d5..be7239e 100644 --- a/roles/mgmt/UpdateAllhosts.yml +++ b/roles/mgmt/UpdateAllhosts.yml @@ -7,6 +7,13 @@ vars: tasks: + - name: Set up apt proxy configuration + copy: + content: | + Acquire::http::Proxy "http://debcache:3142"; + dest: /etc/apt/apt.conf.d/00cacher + mode: '0644' + notify: apt cache update - name: Upgrade-packages.yml - update packages include: ../../roles/lib/upgrade-packages.yml