From c5e0bfaec8aed71855802784156bc295466595c5 Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Sat, 12 Oct 2019 19:13:45 -0400 Subject: [PATCH] fixed some issue with the playbook --- roles/win10/tasks/main.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/roles/win10/tasks/main.yml b/roles/win10/tasks/main.yml index b813ab6..f931dbc 100644 --- a/roles/win10/tasks/main.yml +++ b/roles/win10/tasks/main.yml @@ -17,7 +17,7 @@ - name: configure kernel modules lineinfile: path: /etc/mkinitcpio.conf - regexp: '^MODULE=' + regexp: '^MODULES=' line: 'MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd i915)' notify: regenerate linux initramfs @@ -32,10 +32,16 @@ src: archlinux_iommu.conf dest: /boot/loader/entries/archlinux_iommu.conf +- name: configure qemu user + lineinfile: + path: /etc/libvirt/qemu.conf + regexp: '^#?user' + line: 'user = "1000"' + - name: configure qemu group lineinfile: path: /etc/libvirt/qemu.conf - regexp: '^#?group =' + regexp: '^#?group' line: 'group = "kvm"' - name: setup headless audio @@ -47,7 +53,8 @@ - name: setup ovmf firmware image blockinfile: path: /etc/libvirt/qemu.conf - insertbefore: '^#nvram = \[' + insertbefore: '^#nvram' + marker: '# {mark} NVRAM CONFIGURATION' block: | nvram = [ "/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd" @@ -57,16 +64,16 @@ - name: setup cgroup device acl blockinfile: path: /etc/libvirt/qemu.conf - insertbefore: '^#cgroup_device_acl = \[' + insertbefore: '^#cgroup_device_acl' + marker: '# {mark} DEVICE ACL CONFIGURATION' block: | cgroup_device_acl = [ "/dev/kvm", - "/dev/input/by-id/KEYBOARD_NAME", - "/dev/input/by-id/MOUSE_NAME", "/dev/null", "/dev/full", "/dev/zero", "/dev/random", "/dev/urandom", "/dev/ptmx", "/dev/kvm", "/dev/kqemu", - "/dev/rtc","/dev/hpet", "/dev/sev" + "/dev/rtc","/dev/hpet", "/dev/sev", + "/dev/input/by-path/platform-i8042-serio-0-event-kbd" ] - name: install domain configuration