rm lets_encrypt

main
Alpha Chen 2 years ago
parent 60955c1789
commit 0557631cd7
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -1,27 +0,0 @@
- hosts: ramble-hard
tasks:
- name: install certbot
package:
name:
- certbot
- name: stop nginx
service:
name: nginx
state: stopped
- command: >
certbot certonly --standalone --preferred-challenges http
-n --agree-tos -m {{ lets_encrypt_email }}
-d {{ item }}
loop: "{{ lets_encrypt_tlds }}"
- service:
name: nginx
state: started
- template:
src: lets_encrypt/renew-certs
dest: /etc/cron.daily/renew-certs
mode: +x

@ -1,2 +0,0 @@
#!/bin/sh
certbot renew -w /var/lib/letsencrypt/ --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
Loading…
Cancel
Save