From: Matt Birkholz Date: Wed, 31 Dec 2025 03:23:54 +0000 (-0700) Subject: Configure Apt proxies with IP addresses, not a private domain name. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c912624299ddfb68fbdce429fa5105b8d9fc2bbf;p=Network.git Configure Apt proxies with IP addresses, not a private domain name. --- diff --git a/README.org b/README.org index 752198e..8b2ed93 100644 --- a/README.org +++ b/README.org @@ -1113,10 +1113,8 @@ so caching their packages is not a priority.) - name: Use the local Apt package cache. become: yes copy: - content: > - Acquire::http::Proxy - "http://apt-cacher.birchwood.private.:3142"; - + content: | + Acquire::http::Proxy "http://{{ core_addr }}:3142"; Acquire::https::Proxy "DIRECT"; dest: /etc/apt/apt.conf.d/01proxy mode: u=rw,g=r,o=r @@ -1911,10 +1909,8 @@ local host. - name: Use the local Apt package cache. become: yes copy: - content: > - Acquire::http::Proxy - "http://apt-cacher.birchwood.private.:3142"; - + content: | + Acquire::http::Proxy "http://{{ core_addr }}:3142"; Acquire::https::Proxy "DIRECT"; dest: /etc/apt/apt.conf.d/01proxy mode: u=rw,g=r,o=r @@ -3332,8 +3328,7 @@ resolvectl query 192.168.56.4 - Log in as ~sysadm~ on the console. - Create =/etc/apt/apt.conf.d/01proxy=. - : D=apt-cacher.small.private. - : echo "Acquire::http::Proxy \"http://$D:3142\";" \ + : echo "Acquire::http::Proxy \"http://192.168.56.1:3142\";" \ : | sudo tee /etc/apt/apt.conf.d/01proxy - Update the system and reboot. : sudo apt update diff --git a/roles_t/abbey-cloister/tasks/main.yml b/roles_t/abbey-cloister/tasks/main.yml index 80c7ec6..1649892 100644 --- a/roles_t/abbey-cloister/tasks/main.yml +++ b/roles_t/abbey-cloister/tasks/main.yml @@ -2,10 +2,8 @@ - name: Use the local Apt package cache. become: yes copy: - content: > - Acquire::http::Proxy - "http://apt-cacher.birchwood.private.:3142"; - + content: | + Acquire::http::Proxy "http://{{ core_addr }}:3142"; Acquire::https::Proxy "DIRECT"; dest: /etc/apt/apt.conf.d/01proxy mode: u=rw,g=r,o=r diff --git a/roles_t/abbey-core/tasks/main.yml b/roles_t/abbey-core/tasks/main.yml index 788679e..2df0800 100644 --- a/roles_t/abbey-core/tasks/main.yml +++ b/roles_t/abbey-core/tasks/main.yml @@ -231,10 +231,8 @@ - name: Use the local Apt package cache. become: yes copy: - content: > - Acquire::http::Proxy - "http://apt-cacher.birchwood.private.:3142"; - + content: | + Acquire::http::Proxy "http://{{ core_addr }}:3142"; Acquire::https::Proxy "DIRECT"; dest: /etc/apt/apt.conf.d/01proxy mode: u=rw,g=r,o=r