AppArmor: reload on drop-in changes
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Self-explanatory. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
0a00f3ea93
commit
6e711f23c9
@ -5,5 +5,18 @@
|
|||||||
/etc/apparmor.d/local/{{ profile }}:
|
/etc/apparmor.d/local/{{ profile }}:
|
||||||
file.managed:
|
file.managed:
|
||||||
- contents: {{ lines }}
|
- contents: {{ lines }}
|
||||||
|
- watch_in:
|
||||||
|
- module: apparmor_reload
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
{%- if aapillar['local'] | length %}
|
||||||
|
apparmor_reload:
|
||||||
|
module.run:
|
||||||
|
- name: service.reload
|
||||||
|
- m_name: apparmor
|
||||||
|
{%- for profile in aapillar['local'] %}
|
||||||
|
- onchanges:
|
||||||
|
- file: /etc/apparmor.d/local/{{ profile }}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user