diff --git a/roles/debian-qemu/defaults/main.yml b/roles/debian-qemu/defaults/main.yml index 1319b37..dc2a884 100644 --- a/roles/debian-qemu/defaults/main.yml +++ b/roles/debian-qemu/defaults/main.yml @@ -4,3 +4,5 @@ autofs_packages: - autofs - libnfs-utils - autofs-ldap +blacklist_module_kernel: | + blacklist snd_hda_intel diff --git a/roles/debian-qemu/tasks/blacklist.yml b/roles/debian-qemu/tasks/blacklist.yml new file mode 100644 index 0000000..7076911 --- /dev/null +++ b/roles/debian-qemu/tasks/blacklist.yml @@ -0,0 +1,7 @@ +- name: Configure blacklist modprobe on VM + copy: + content: "{{ blacklist_module_kernel }}" + dest: /etc/modprobe.d/vn-blacklist.conf + owner: root + group: root + mode: u=rw,g=r,o=r \ No newline at end of file diff --git a/roles/debian-qemu/tasks/main.yml b/roles/debian-qemu/tasks/main.yml index ec83e1e..bcb11ce 100644 --- a/roles/debian-qemu/tasks/main.yml +++ b/roles/debian-qemu/tasks/main.yml @@ -4,3 +4,5 @@ tags: hotplug - import_tasks: autofs.yml tags: autofs +- import_tasks: blacklist.yml + tags: blacklist