Switches from cron to systemd

This commit is contained in:
Nikolaos Kakouros
2017-09-06 22:11:17 +02:00
parent f00a0ba181
commit 3e46e4ba8f
6 changed files with 41 additions and 1 deletions
+1 -1
View File
@@ -7,5 +7,5 @@
- include: install-from-source.yml
when: certbot_install_from_source
- include: renew-cron.yml
- include: systemd.yml
when: certbot_auto_renew
+13
View File
@@ -0,0 +1,13 @@
---
- name: Create certbot-renew service
template:
src: certbot-renew.service.j2
dest: /etc/systemd/system/certbot-renew.service
notify: restart-certbot-renew-service
- name: Create certbot-renew timer
template:
src: certbot-renew.timer
dest: /etc/systemd/system/certbot-renew.timer
notify: restart-certbot-renew-service