Implemented working version of drone w/nginx https

This commit is contained in:
Bastian de Byl
2020-09-24 22:52:33 -04:00
parent e0abdbe506
commit 53f2868916
14 changed files with 93 additions and 50 deletions

View File

@@ -1,10 +1,9 @@
---
- cron: renew certbot ssl certificate weekly
- name: renew certbot ssl certificates weekly
become: true
cron:
name: ci_bdebyl_net_renewal
name: certbot_renew
special_time: weekly
job: |
certbot --renew certonly --webroot --webroot-path=/srv/http \
-m {{ ci_server_email }} --agree-tos \
-d {{ ci_server_name }}
tags: never
certbot renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
tags: cron

View File

@@ -2,3 +2,4 @@
- import_tasks: deps.yml
- import_tasks: http.yml
- import_tasks: ssl.yml
- import_tasks: cron.yml