fix: Manage repositories

This commit is contained in:
2024-06-03 18:05:23 +02:00
parent c825925d7c
commit 028beb4ea0
8 changed files with 52 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# {{ ansible_managed }}
APT::Default-Release "{{ apt_distribution_release }}";
APT::Default-Release "stable";
APT::Install-Recommends "false";
APT::Install-Suggests "false";
APT::Get::Show-Versions "true";

View File

@@ -3,7 +3,7 @@
{% if apt_distribution_release == "sid" %}
Types: deb
URIs: https://deb.debian.org/debian
Suites: {{ apt_distribution_release }} {{ apt_distribution_release }}-updates {{ apt_distribution_release }}-backports
Suites: {{ apt_distribution_release }}
Components: {{ apt_distribution_sections }}
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
{% else %}

5
templates/preferences.j2 Normal file
View File

@@ -0,0 +1,5 @@
# {{ ansible_managed }}
Package: {{ item.package }}
Pin: {{ item.pin }}
Pin-Priority: {{ item.priority }}

View File

@@ -1,3 +0,0 @@
# {{ ansible_managed }}
deb [signed-by=/etc/apt/keyrings/{{ item.name }}.asc] {{ item.url }} {{ item.distribution_release }} {{ item.distribution_section }}

View File

@@ -0,0 +1,7 @@
# {{ ansible_managed }}
Types: deb
URIs: {{ item.url }}
Suites: {{ item.suites }}
Components: {{ item.components }}
Signed-By: {{ item.key_path }}