From b8278644b5ed732f101ba6aeecb68cfa29c97c60 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 8 Aug 2023 16:15:35 -0400 Subject: [PATCH] Use custom fact for Debian codename --- roles/base/templates/etc/apt/preferences.d/pins.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/base/templates/etc/apt/preferences.d/pins.j2 b/roles/base/templates/etc/apt/preferences.d/pins.j2 index f8668bd..b86d59f 100644 --- a/roles/base/templates/etc/apt/preferences.d/pins.j2 +++ b/roles/base/templates/etc/apt/preferences.d/pins.j2 @@ -2,11 +2,11 @@ # {{ ansible_managed }} Package: * -Pin: release a={{ ansible_distribution_release }} +Pin: release a={{ debian_codename }} Pin-Priority: 999 {% if 'base' in group_names %} Package: * -Pin: release a={{ ansible_distribution_release }}-backports +Pin: release a={{ debian_codename }}-backports Pin-Priority: -1 {% endif %}