Commit 89051cd0 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: prevent kvm_intel from being loaded by udev.

When module was loaded by udev, there wasn't the parameter nested=Y

/reviewed-on nexedi/slapos.package!100
parent 4ada82f8
--- ---
- modprobe: name=kvm_intel state=present params='nested=Y' - name: Insert kvm_intel module with parameter nested=Y
modprobe: name=kvm_intel state=present params='nested=Y'
ignore_errors: True ignore_errors: True
- name: Prevent kvm_intel module from being loaded by udev
lineinfile:
dest: /etc/modprobe.d/blacklist.conf
line: "blacklist kvm_intel"
state: present
create: yes
- pause: seconds=2 - pause: seconds=2
- stat: path=/dev/kvm - stat: path=/dev/kvm
...@@ -13,7 +21,8 @@ ...@@ -13,7 +21,8 @@
when: dev_kvm.stat.exists == True when: dev_kvm.stat.exists == True
- modprobe: name=vhost-net state=present - name: Insert vhost-net module
modprobe: name=vhost-net state=present
ignore_errors: True ignore_errors: True
- pause: seconds=2 - pause: seconds=2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment