feat(cron.env): add env option in cron-formula

This commit is contained in:
Gino Naumann committed 2019-11-03 18:18:07 +01:00
1 parent f9c61a9859
commit 12cee12227
2 files changed
+29

No files matched your search

+13
View File
@@ -23,3 +23,16 @@ cron.{{ task }}:
{%- endif %}
{%- endfor %}
{%- for env, env_options in cron.get('env', {}). items() %}
{%- set env_type = env_options.type|d('present') %}
cron.{{ env }}:
cron.env_{{ env_type }}:
- name: {{ env_options.name }}
{%- if env_type == 'present' %}
- value: {{ env_options.value }}
{%- endif %}
- user: {{ env_options.user|d('root') }}
{%- endfor %}