Use custom fact for Debian codename
This commit is contained in:
parent
db86af7c51
commit
b8278644b5
|
@ -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