From 5d0473791871bc238239b7454d0ce00f478e4ee4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 4 Jun 2024 20:09:06 +0200 Subject: add kubernetes and docker-com apt-cache and fix cleanup --- inventory/host_vars/ch-repo.yml | 2 ++ roles/approx/tasks/main.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/inventory/host_vars/ch-repo.yml b/inventory/host_vars/ch-repo.yml index 1e34cc92..ee0c459f 100644 --- a/inventory/host_vars/ch-repo.yml +++ b/inventory/host_vars/ch-repo.yml @@ -70,6 +70,8 @@ approx_backends: kali: http://http.kali.org/kali raspios: http://archive.raspberrypi.com/debian spreadspace: http://build.spreadspace.org + kubernetes: "https://pkgs.k8s.io/core:/stable:" + docker-com: https://download.docker.com/linux prometheus_job_multitarget_blackbox__probe: diff --git a/roles/approx/tasks/main.yml b/roles/approx/tasks/main.yml index 5896dcab..26c8f8d4 100644 --- a/roles/approx/tasks/main.yml +++ b/roles/approx/tasks/main.yml @@ -70,6 +70,12 @@ name: approx.socket state: started +- name: fix path to cache directory for cleanup cron script + lineinfile: + path: /etc/cron.weekly/approx + regexp: '^cache=' + line: 'cache={{ approx_basepath }}/cache' + - name: configure nginx vhost vars: nginx_vhost: -- cgit v1.2.3