Merge pull request 'AppArmor: reload on drop-in changes' (#28) from reload-apparmor into production
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Reviewed-on: #28
This commit is contained in:
commit
29435f6fc3
@ -5,5 +5,18 @@
|
||||
/etc/apparmor.d/local/{{ profile }}:
|
||||
file.managed:
|
||||
- contents: {{ lines }}
|
||||
- watch_in:
|
||||
- module: apparmor_reload
|
||||
{%- endfor %}
|
||||
|
||||
{%- if aapillar['local'] | length %}
|
||||
apparmor_reload:
|
||||
module.run:
|
||||
- name: service.reload
|
||||
- m_name: apparmor
|
||||
- onchanges:
|
||||
{%- for profile in aapillar['local'] %}
|
||||
- file: /etc/apparmor.d/local/{{ profile }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user