mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2026-10-03 09:25:22 +02:00
style(state): avoid complicated comparison
This commit is contained in:
1 parent
31d3d9b73b
commit
496f09b2e1
2 files changed
+2
-1
No files matched your search
@@ -4,3 +4,4 @@
|
||||
cron:
|
||||
pkg: cronie
|
||||
service: cron
|
||||
enabled: true
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user