Use custom fact for Debian codename

This commit is contained in:
Joshua Boniface 2023-08-08 16:15:35 -04:00
parent db86af7c51
commit b8278644b5
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@
# {{ ansible_managed }} # {{ ansible_managed }}
Package: * Package: *
Pin: release a={{ ansible_distribution_release }} Pin: release a={{ debian_codename }}
Pin-Priority: 999 Pin-Priority: 999
{% if 'base' in group_names %} {% if 'base' in group_names %}
Package: * Package: *
Pin: release a={{ ansible_distribution_release }}-backports Pin: release a={{ debian_codename }}-backports
Pin-Priority: -1 Pin-Priority: -1
{% endif %} {% endif %}