[apt] Pin some packages from other versions
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
12
roles/apt/templates/apt/preferences.d/pin.list.j2
Normal file
12
roles/apt/templates/apt/preferences.d/pin.list.j2
Normal file
@ -0,0 +1,12 @@
|
||||
{{ ansible_header | comment }}
|
||||
|
||||
|
||||
Package: *
|
||||
Pin: release n={{ item[1].key }}
|
||||
Pin-Priority: 1
|
||||
{% for package in item[1].value -%}
|
||||
|
||||
Package: {{ package }}
|
||||
Pin: release n={{ item[1].key }}
|
||||
Pin-Priority: 900
|
||||
{% endfor -%}
|
3
roles/apt/templates/apt/sources.list.d/pin.list.j2
Normal file
3
roles/apt/templates/apt/sources.list.d/pin.list.j2
Normal file
@ -0,0 +1,3 @@
|
||||
{{ ansible_header | comment }}
|
||||
|
||||
deb {{ apt.mirror }}debian {{ item[1].key }} main contrib non-free
|
Reference in New Issue
Block a user