kayobe/ansible/roles/libvirt-host/tasks/validate.yml
Mark Goddard c2771d7c0e Add libvirt-host role
Configures a host as a Libvirt/KVM hypervisor. It can also create pools and networks
2017-08-07 12:08:08 +00:00

14 lines
391 B
YAML

---
- name: Verify that Virtualization Technology (VT) is enabled
command: grep -c -E 'svm|vmx' /proc/cpuinfo
changed_when: False
failed_when: False
register: result
- name: Fail if Virtualization Technology (VT) is disabled
fail:
msg: >
Virtualization Technology (VT) is currently disabled. Please enable VT
before running this role again.
when: result.rc != 0