Use custom fact for Debian codename
This commit is contained in:
parent
7e829f04ae
commit
08f923d29c
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue