Merge pull request #14 from n-rodriguez/fix/coding_style
style(state): avoid complicated comparison
This commit is contained in:
commit
06cde46103
|
@ -4,3 +4,4 @@
|
||||||
cron:
|
cron:
|
||||||
pkg: cronie
|
pkg: cronie
|
||||||
service: cron
|
service: cron
|
||||||
|
enabled: true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{%- from tplroot ~ "/map.jinja" import cron with context %}
|
{%- from tplroot ~ "/map.jinja" import cron with context %}
|
||||||
|
|
||||||
cron.service:
|
cron.service:
|
||||||
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %}
|
{%- if cron.enabled %}
|
||||||
service.running:
|
service.running:
|
||||||
- name: {{ cron.service }}
|
- name: {{ cron.service }}
|
||||||
- enable: true
|
- enable: true
|
||||||
|
|
Loading…
Reference in New Issue