From b715d884782d2d49ec499d3f8fda20e5a7f973cb Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 14 Jul 2014 03:41:06 +0200 Subject: Don't install intel-microcode on Xen guests. It should be installed on the dom0 instead. --- roles/common/templates/etc/apt/preferences.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/common/templates/etc/apt/preferences.j2') 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 @@ -19,7 +19,8 @@ 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 -- cgit v1.2.3