summaryrefslogtreecommitdiff
path: root/roles/web/tasks/certificate.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/web/tasks/certificate.yml')
-rw-r--r--roles/web/tasks/certificate.yml15
1 files changed, 0 insertions, 15 deletions
diff --git a/roles/web/tasks/certificate.yml b/roles/web/tasks/certificate.yml
deleted file mode 100644
index 5d25a63..0000000
--- a/roles/web/tasks/certificate.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-- name: Request SSL certificate from Let's Encrypt
- shell: |
- # Make task independent: if nginx is already running, stop it and then
- # start back on exit.
- [ -f /var/run/nginx.pid ] && systemctl stop nginx
- trap "systemctl start nginx" EXIT
- certbot certonly \
- --standalone \
- --agree-tos \
- --renew-by-default \
- --email webmaster@ilvokhin.com \
- --rsa-key-size 4096 \
- -d {{ domains | join(' -d ') }}
- args:
- creates: '/etc/letsencrypt/live/{{ domains | first }}/fullchain.pem'