CU-cunmht split ssl from http role to separate role
This commit is contained in:
10
ansible/roles/ssl/tasks/cron.yml
Normal file
10
ansible/roles/ssl/tasks/cron.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: renew certbot ssl certificates weekly
|
||||
become: true
|
||||
cron:
|
||||
name: certbot_renew
|
||||
special_time: weekly
|
||||
job: |
|
||||
certbot renew --pre-hook "systemctl stop nginx" \
|
||||
--post-hook "systemctl start nginx"
|
||||
tags: cron
|
||||
Reference in New Issue
Block a user