summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-07-29 13:47:43 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-07-29 13:47:43 +0200
commita48661c2f5082b8e15a952aaf33b1e8848ffbe90 (patch)
tree5b59f8f3c478f30e7926609a6b3786f3f22a00b5 /roles/common/tasks
parent874ee116c6f1ee61bca9cba4fa8347a26a0fa1e9 (diff)
Fix detection of KVM guests.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 0230c0c..c63d7a4 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -6,7 +6,7 @@
tags: apt
- name: Install intel-microcode
apt: pkg=intel-microcode
- when: "ansible_processor[0] | search('^(Genuine)?Intel.*') and not (ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'xen')"
+ when: "ansible_processor[0] | search('^(Genuine)?Intel.*') and not ansible_virtualization_role == 'guest'"
tags: intel
- include: firewall.yml
tags:
@@ -30,7 +30,7 @@
tags:
- smartmontools
- smart
- when: "not ((ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'xen') or ansible_system_vendor == 'QEMU')"
+ when: "not ansible_virtualization_role == 'guest'"
- include: haveged.yml
tags:
- haveged