mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-09-10 16:00:41 +02:00
Switches from cron to systemd
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Let's Encrypt renewal
|
||||
|
||||
[Service]
|
||||
User={{ certbot_auto_renew_user }}
|
||||
Type=oneshot
|
||||
ExecStart={{ certbot_script }} renew --quiet --agree-tos
|
||||
|
||||
ExecStartPost=/bin/systemctl reload {{ certbot_web_service }}.service
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Periodically check for Let's Encrypt's certificates renewal
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* {{ certbot_auto_renew_hour }}:{{ certbot_auto_renew_minute }}:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user