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 %}