blob: 6771e953f0bd0a6da51bcaa949fd629d7db77c29 [file] [log] [blame]
Zack Williams4e5e0cc2016-03-10 12:51:35 -07001---
2# file: roles/dell-virt/prep/tasks/main.yml
3
4- name: Trust the Dell apt repository
5 apt_key:
6 keyserver=pool.sks-keyservers.net
7 id=1285491434D8786F
8
9- name: Add Dell apt repo
Zack Williamsa0912602016-03-14 11:05:09 -070010 apt_repository:
Zack Williams4e5e0cc2016-03-10 12:51:35 -070011 repo="deb http://linux.dell.com/repo/community/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} openmanage"
12
13- name: Install BIOS configuration scripts
14 apt:
15 update_cache=yes
16 name=dtk-scripts
17
18# KVM virtualization is either "kvm_intel" or "kvm_amd" on amd64
19- name: Check to see if processor KVM virtualization module loaded in kernel
20 shell: lsmod | grep kvm_
21 ignore_errors: true
22 register: virtualization_enabled
23
24- name: Enable virtualization in BIOS
25 command: /opt/dell/toolkit/bin/syscfg --virtualization=enable
26 when: virtualization_enabled|failed
27