fixed some issue with the playbook
This commit is contained in:
parent
4ecd7e0d44
commit
c5e0bfaec8
|
@ -17,7 +17,7 @@
|
||||||
- name: configure kernel modules
|
- name: configure kernel modules
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/mkinitcpio.conf
|
path: /etc/mkinitcpio.conf
|
||||||
regexp: '^MODULE='
|
regexp: '^MODULES='
|
||||||
line: 'MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd i915)'
|
line: 'MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd i915)'
|
||||||
notify: regenerate linux initramfs
|
notify: regenerate linux initramfs
|
||||||
|
|
||||||
|
@ -32,10 +32,16 @@
|
||||||
src: archlinux_iommu.conf
|
src: archlinux_iommu.conf
|
||||||
dest: /boot/loader/entries/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
|
- name: configure qemu group
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/libvirt/qemu.conf
|
path: /etc/libvirt/qemu.conf
|
||||||
regexp: '^#?group ='
|
regexp: '^#?group'
|
||||||
line: 'group = "kvm"'
|
line: 'group = "kvm"'
|
||||||
|
|
||||||
- name: setup headless audio
|
- name: setup headless audio
|
||||||
|
@ -47,7 +53,8 @@
|
||||||
- name: setup ovmf firmware image
|
- name: setup ovmf firmware image
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/libvirt/qemu.conf
|
path: /etc/libvirt/qemu.conf
|
||||||
insertbefore: '^#nvram = \['
|
insertbefore: '^#nvram'
|
||||||
|
marker: '# {mark} NVRAM CONFIGURATION'
|
||||||
block: |
|
block: |
|
||||||
nvram = [
|
nvram = [
|
||||||
"/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd"
|
"/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd"
|
||||||
|
@ -57,16 +64,16 @@
|
||||||
- name: setup cgroup device acl
|
- name: setup cgroup device acl
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/libvirt/qemu.conf
|
path: /etc/libvirt/qemu.conf
|
||||||
insertbefore: '^#cgroup_device_acl = \['
|
insertbefore: '^#cgroup_device_acl'
|
||||||
|
marker: '# {mark} DEVICE ACL CONFIGURATION'
|
||||||
block: |
|
block: |
|
||||||
cgroup_device_acl = [
|
cgroup_device_acl = [
|
||||||
"/dev/kvm",
|
"/dev/kvm",
|
||||||
"/dev/input/by-id/KEYBOARD_NAME",
|
|
||||||
"/dev/input/by-id/MOUSE_NAME",
|
|
||||||
"/dev/null", "/dev/full", "/dev/zero",
|
"/dev/null", "/dev/full", "/dev/zero",
|
||||||
"/dev/random", "/dev/urandom",
|
"/dev/random", "/dev/urandom",
|
||||||
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
"/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
|
- name: install domain configuration
|
||||||
|
|
Loading…
Reference in New Issue