diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-07-14 03:41:06 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:53:10 +0200 |
commit | b715d884782d2d49ec499d3f8fda20e5a7f973cb (patch) | |
tree | 5c61194bd26204d22702109ceeb28eee4c9cd973 /roles/common/templates/etc/apt/preferences.j2 | |
parent | 3a5a4b57c83d9a6b06807315fd2de33852e23257 (diff) |
Don't install intel-microcode on Xen guests.
It should be installed on the dom0 instead.
Diffstat (limited to 'roles/common/templates/etc/apt/preferences.j2')
-rw-r--r-- | roles/common/templates/etc/apt/preferences.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/common/templates/etc/apt/preferences.j2 b/roles/common/templates/etc/apt/preferences.j2 index a3a7595..2821f6d 100644 --- a/roles/common/templates/etc/apt/preferences.j2 +++ b/roles/common/templates/etc/apt/preferences.j2 @@ -2,35 +2,36 @@ # 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 packages from backports (those manually installed) Package: * Pin: release a={{ ansible_lsb.codename }}-backports Pin-Priority: 200 {% endif %} {% if 'non-free' in group_names -%} # Automatically upgrade non-free firmwares (when manually installed) Package: firmware-linux-nonfree Pin-Priority: 200 {% endif %} -{% if ansible_processor[0] | search("^Intel.*") -%} +{% if ansible_processor[0] | search('^Intel.*') and + not (ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'xen') -%} # Automatically upgrade the microcode (when manually installed) 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 |