File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 5
5
name : libvirtd
6
6
state : restarted
7
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
Original file line number Diff line number Diff line change 25
25
vars :
26
26
libvirt_env_path : " {{ '/etc/default/libvirt-bin' if libvirt_bin_stat.stat.exists else '/etc/default/libvirtd' }}"
27
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
+ become : true
35
+ when : item.type == "dir"
36
+ loop : " {{ libvirt_host_pools | flatten(levels=1) }}"
37
+ notify :
38
+ - reload libvirt qemu apparmor profile template
You can’t perform that action at this time.
0 commit comments