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:
Timo Makinen 2022-04-13 16:45:16 +00:00
parent b2389f8c63
commit f96800051b

View file

@ -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 }}"