Skip to content

Commit

Permalink
letsencrypt auto renewal for centos
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerNippes committed Apr 28, 2019
1 parent 0788b8e commit a7a7ebd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/prep_letsencrypt/tasks/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
- requests
- setuptools
- certbot-nginx
state: latest
state: latest

- name: letsencrypt renewal cronjob
cron:
name: "letsencrypt automatic renewal"
hour: "3,15"
job: "python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew"

0 comments on commit a7a7ebd

Please # to comment.