diff --git a/cron/defaults.yaml b/cron/defaults.yaml index 5f33b14..6c3d0f7 100644 --- a/cron/defaults.yaml +++ b/cron/defaults.yaml @@ -4,3 +4,4 @@ cron: pkg: cronie service: cron + enabled: true diff --git a/cron/service/running.sls b/cron/service/running.sls index 6aaad1b..0c81f4e 100644 --- a/cron/service/running.sls +++ b/cron/service/running.sls @@ -6,7 +6,7 @@ {%- from tplroot ~ "/map.jinja" import cron with context %} cron.service: -{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %} +{%- if cron.enabled %} service.running: - name: {{ cron.service }} - enable: true