ansible/roles/sdcron/templates/etc/systemd/system/sdcron.timer.j2

16 lines
311 B
Django/Jinja

[Unit]
Description=Timer for {{ item.name }}.
[Timer]
{% if ( item.type | default("intervalbased") ) == "intervalbased" %}
OnBootSec=5m
OnUnitInactiveSec={{ item.interval | default ('12h') }}
{% else %}
OnCalendar={{ item.calendar }}
{% endif %}
Unit={{ item.name }}.service
[Install]
WantedBy=timers.target