fix: Manage repositories
This commit is contained in:
@@ -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";
|
||||
|
@@ -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
5
templates/preferences.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Package: {{ item.package }}
|
||||
Pin: {{ item.pin }}
|
||||
Pin-Priority: {{ item.priority }}
|
@@ -1,3 +0,0 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
deb [signed-by=/etc/apt/keyrings/{{ item.name }}.asc] {{ item.url }} {{ item.distribution_release }} {{ item.distribution_section }}
|
7
templates/repository.sources.j2
Normal file
7
templates/repository.sources.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: {{ item.url }}
|
||||
Suites: {{ item.suites }}
|
||||
Components: {{ item.components }}
|
||||
Signed-By: {{ item.key_path }}
|
Reference in New Issue
Block a user