From 855696ad979728a6889379124a5dad0adee554f3 Mon Sep 17 00:00:00 2001 From: "don.sizemore" Date: Fri, 19 Feb 2021 14:45:32 -0500 Subject: [PATCH] #122 auto-renew certs when specified --- tasks/certbot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/certbot.yml b/tasks/certbot.yml index f1f089bb..2a4f4012 100644 --- a/tasks/certbot.yml +++ b/tasks/certbot.yml @@ -35,3 +35,10 @@ name: httpd state: started when: not letsencrypt_cert.stat.exists + +- name: automatically renew certs + service: + name: certbot-renew.timer + state: started + enabled: yes + when: letsencrpyt.certbot.autonew == true