From 426a6e8895f85810f7fea57ce8323870e61db20d Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Fri, 12 Nov 2021 11:07:07 +0100 Subject: [PATCH] Prepare the host in pre_tasks. --- edubox.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/edubox.yml b/edubox.yml index f952c29..87ca8ee 100644 --- a/edubox.yml +++ b/edubox.yml @@ -10,7 +10,19 @@ containers: "{{ range(0, 9 + 1) | list }}" extra_pkgs: [apt-cacher-ng] + pre_tasks: + - name: enable apt-cacher-ng + lineinfile: + path: /etc/apt/apt.conf.d/30proxy + line: 'Acquire::http::Proxy "http://localhost:3142/";' + create: yes + + - name: enable and start systemd-networkd on the host + systemd: + name: systemd-networkd + state: started + enabled: yes + roles: - up2date-debian - educontainer -