Commit 6075dadb authored by Elena Grandi's avatar Elena Grandi
Browse files

Use squid-deb-proxy on the server to access apt repositories

parent ec1bebf6
Pipeline #372 failed with stage
in 28 seconds
---
# whether there is squid-deb-proxy on the server
squid_deb_proxy: true
......@@ -50,6 +50,16 @@
line: 'session required pam_env.so readenv=1'
regexp: 'session required pam_env.so*'
backup: yes
- name: Set proxy for apt through squid-deb-proxy
blockinfile:
dest: /etc/apt/apt.conf
marker: "# {mark} ADDED BY FUSS_CLIENT"
block: |
Acquire::http::proxy "http://{{ server }}:8000";
Acquire::https::proxy "http://{{ server }}:8000";
backup: yes
create: yes
when: squid_deb_proxy
- name: Set proxy for apt
blockinfile:
dest: /etc/apt/apt.conf
......@@ -59,6 +69,7 @@
Acquire::https::proxy "http://{{ server }}:8080";
backup: yes
create: yes
when: not squid_deb_proxy
- name: Configure timesyncd to use our server
lineinfile:
dest: /etc/systemd/timesyncd.conf
......
fuss-client (11.0.2) unstable; urgency=medium
* Use squid-deb-proxy on the server to access apt repositories
-- Elena Grandi <elena@truelite.it> Fri, 01 Jul 2022 14:10:33 +0200
fuss-client (11.0.1) unstable; urgency=medium
[ Elena Grandi ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment