From 9267a8f78e8f011c2addf2f36f7a56b312f10045 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 27 Jun 2023 11:45:14 +0200 Subject: [PATCH] updated apparmor state --- states/apparmor/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/states/apparmor/init.sls b/states/apparmor/init.sls index d478f42..3fd9a2c 100644 --- a/states/apparmor/init.sls +++ b/states/apparmor/init.sls @@ -1,5 +1,6 @@ --- {%- from "apparmor/map.jinja" import apparmor with context %} +{%- if not salt['grains.get']('container') %} {%- if apparmor.enabled is defined and apparmor.enabled %} {%- for cfg in apparmor.configs %} apparmor-{{ cfg }}: @@ -19,3 +20,4 @@ apparmor-reload: - name: apparmor - enable: true {%- endif %} +{%- endif %}