We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05a3470 + 7e98a6f commit a8ccd60Copy full SHA for a8ccd60
handlers/main.yml
@@ -5,3 +5,7 @@
5
name: libvirtd
6
state: restarted
7
become: true
8
+
9
+- name: reload libvirt qemu apparmor profile template
10
+ command: apparmor_parser -r /etc/apparmor.d/libvirt/TEMPLATE.qemu
11
+ become: true
tasks/post-install-Debian.yml
@@ -25,3 +25,14 @@
25
vars:
26
libvirt_env_path: "{{ '/etc/default/libvirt-bin' if libvirt_bin_stat.stat.exists else '/etc/default/libvirtd' }}"
27
tags: vars
28
29
+- name: Configure libvirt QEMU apparmor profile template
30
+ lineinfile:
31
+ path: "/etc/apparmor.d/libvirt/TEMPLATE.qemu"
32
+ insertbefore: "^}"
33
+ line: " {{ item.path }}/** rwk,"
34
35
+ when: item.type == "dir"
36
+ loop: "{{ libvirt_host_pools | flatten(levels=1) }}"
37
+ notify:
38
+ - reload libvirt qemu apparmor profile template
0 commit comments