kvm_host: Disable bluetooth kernel modules
Some IoT devices communicate through bluetooth so adapters are required for host machines and passed through to virtual machines. This patch prevents host to bluetooth kernel modules so adapters are not in use and available for virtual machines.
This commit is contained in:
parent
b2389f8c63
commit
f96800051b
1 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,16 @@
|
|||
---
|
||||
- name: disable bluetooth
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/modprobe.d/disable-bluetooth.conf
|
||||
content: |
|
||||
blacklist bnep
|
||||
blacklist bluetooth
|
||||
blacklist btintel
|
||||
blacklist btusb
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: install kvm qemu packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue