mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2026-09-25 05:59:24 +02:00
fix(quotes): remove single quotes causing issues (or unnecessary)
* Allow single quotes to be used in commands and comments, e.g.: - /usr/bin/salt '*' test.ping >/root/salt_test_ping
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
cron.{{ task }}:
|
||||
cron.{{ task_options.type|default('present') }}:
|
||||
- name: '{{ task_options.name }}'
|
||||
- name: {{ task_options.name }}
|
||||
{%- if 'user' in task_options %}
|
||||
- user: {{ task_options.user|default('root') }}
|
||||
{%- endif %}
|
||||
@@ -35,7 +35,7 @@ cron.{{ task }}:
|
||||
{%- endif %}
|
||||
- identifier: '{{ task }}'
|
||||
{%- if 'comment' in task_options %}
|
||||
- comment: '{{ task_options.comment }}'
|
||||
- comment: {{ task_options.comment }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
|
||||
Reference in New Issue
Block a user