From 1ad6766deff83929d6c3f5c502aa9d046322bbbb Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 26 Feb 2022 18:58:51 +0100 Subject: [PATCH] fix: enable check for vmx and svm --- tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index b29e2d9..6352e85 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,10 +5,10 @@ register: cpu_info changed_when: false -# - name: Verify if Intel VMX or AMD SVM is enabled -# fail: -# msg: "Intel VMX or AMD SVE not enabled" -# when: "'vmx' not in cpu_info.stdout and 'svm' not in cpu_info.stdout" +- name: Verify if Intel VMX or AMD SVM is enabled + fail: + msg: "Intel VMX or AMD SVE not enabled" + when: "'vmx' not in cpu_info.stdout and 'svm' not in cpu_info.stdout" - name: Load variables include_vars: "{{ ansible_os_family }}.yml"