summaryrefslogtreecommitdiffstats
path: root/roles/common/templates/etc/apt/preferences.j2
blob: 448248af5bc1c2c63b18b1fbda08c20249a7461d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# {{ ansible_managed }}
# Do NOT edit this file directly!

# Install updates as soon as they're available
Package: *
Pin: release a={{ ansible_lsb.codename }}-updates
Pin-Priority: 990

{% if 'backports' in group_names -%}
# Automatically install new versions from backports
Package: *
Pin: release a={{ ansible_lsb.codename }}-backports
Pin-Priority: 200
{% endif %}

{% if 'non-free' in group_names -%}
# Install automatically new firmwares from backports
Package: firmware-linux-nonfree
Pin-Priority: 200
{% endif %}

{% if ansible_processor[0] | search("^Intel.*") -%}
# Automatically upgrade the microcode
Package: intel-microcode iucode-tool
Pin-Priority: 200
{% endif %}

# Never, ever install things from contrib or non-free unless they have been
# whitelisted above
Package: *
Pin: release c=contrib
Pin-Priority: -1

Package: *
Pin: release c=non-free
Pin-Priority: -1