Skip to content

Commit

Permalink
vagrant/vm: fix deps for libvirt
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel committed Sep 19, 2024
1 parent af5ef74 commit 852ce47
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vagrant/ansible/roles/vm/tasks/libvirt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: "{{ item }}"
with_items:
- libvirt-daemon-system
- python-libvirt
- python3-libvirt

# kvm group to access /dev/kvm, libvirt-qemu for rw on memory access socket
Expand All @@ -17,18 +16,18 @@
- name: include local config for libvirt-qemu apparmor profile
lineinfile:
path: /etc/apparmor.d/libvirt/TEMPLATE.qemu
line: '#include <local/libvirt-qemu>'
insertafter: '#include <abstractions/libvirt-qemu>'
line: "#include <local/libvirt-qemu>"
insertafter: "#include <abstractions/libvirt-qemu>"

- name: add local QEMU apparmor profile for libvirtd
lineinfile:
path: /etc/apparmor.d/local/usr.sbin.libvirtd
line: '/usr/local/bin/qemu-system-x86_64 PUx,'
line: "/usr/local/bin/qemu-system-x86_64 PUx,"

- name: add local QEMU apparmor profile for libvirt-qemu
lineinfile:
path: /etc/apparmor.d/local/libvirt-qemu
line: '/usr/local/bin/qemu-system-x86_64 PUx,'
line: "/usr/local/bin/qemu-system-x86_64 PUx,"
create: yes

- name: reload apparmor
Expand Down

0 comments on commit 852ce47

Please sign in to comment.