summaryrefslogtreecommitdiff
path: root/roles/apt-repo
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-26 23:24:58 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-26 23:24:58 +0200
commit74661be687f6981f19568305d606207916af7d85 (patch)
tree21cc50bf2fc6b3220a36725c52893f21ad351e0f /roles/apt-repo
parentch-apt: add to prometheus monitoring and fix cache backends (diff)
move chaos-at-home hosts to new apt cache and harmonize sources.list config for raspios
Diffstat (limited to 'roles/apt-repo')
-rw-r--r--roles/apt-repo/base/tasks/main.yml5
-rw-r--r--roles/apt-repo/base/templates/Debian.list.j23
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/apt-repo/base/tasks/main.yml b/roles/apt-repo/base/tasks/main.yml
index 668f6453..27050b40 100644
--- a/roles/apt-repo/base/tasks/main.yml
+++ b/roles/apt-repo/base/tasks/main.yml
@@ -13,6 +13,11 @@
path: "/etc/apt/sources.list.d/{{ item }}"
state: absent
+- name: remove seperate raspi.list file (repo is part of the base config)
+ file:
+ path: "/etc/apt/sources.list.d/raspi.list"
+ state: absent
+
- name: update apt cache
when: apt_repo_base_sources is changed
command: apt-get update
diff --git a/roles/apt-repo/base/templates/Debian.list.j2 b/roles/apt-repo/base/templates/Debian.list.j2
index 91531f7e..d29ced50 100644
--- a/roles/apt-repo/base/templates/Debian.list.j2
+++ b/roles/apt-repo/base/templates/Debian.list.j2
@@ -5,3 +5,6 @@ deb http://{{ apt_repo_providers[apt_repo_provider].debian_security.host }}{{ ap
{% else %}
deb http://{{ apt_repo_providers[apt_repo_provider].debian_security.host }}{{ apt_repo_providers[apt_repo_provider].debian_security.path }} {{ ansible_distribution_release }}-security {{ apt_repo_components | default(apt_repo_base_components.debian) | join(' ') }}
{% endif %}
+{% if 'raspios' in group_names %}
+deb http://{{ apt_repo_providers[apt_repo_provider].raspios.host }}{{ apt_repo_providers[apt_repo_provider].raspios.path }} {{ ansible_distribution_release }} main
+{% endif %}