|
|
|
|
|
|
|
|
{%- if job.enabled|default(True) %} |
|
|
{%- if job.enabled|default(True) %} |
|
|
cron.present: |
|
|
cron.present: |
|
|
- name: {{ job.command }} |
|
|
- name: {{ job.command }} |
|
|
|
|
|
{%- if job.get('identifier', True) %} |
|
|
|
|
|
- identifier: {{ job.get('identifier', job.get('name', name)) }} |
|
|
|
|
|
{%- endif %} |
|
|
- user: {{ job.user|default("root") }} |
|
|
- user: {{ job.user|default("root") }} |
|
|
{%- if job.minute is defined %} |
|
|
{%- if job.minute is defined %} |
|
|
- minute: '{{ job.minute }}' |
|
|
- minute: '{{ job.minute }}' |
|
|
|
|
|
|
|
|
{%- else %} |
|
|
{%- else %} |
|
|
cron.absent: |
|
|
cron.absent: |
|
|
- name: {{ job.command }} |
|
|
- name: {{ job.command }} |
|
|
|
|
|
{%- if job.get('identifier', True) %} |
|
|
|
|
|
- identifier: {{ job.get('identifier', job.get('name', name)) }} |
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |