Remove LetsEncrypt role, it is no longer useful.
This commit is contained in:
parent
2dd075b853
commit
bf36cacc89
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
letsencrypt renew
|
|
||||||
service nginx reload
|
|
@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
- name: restart cron
|
|
||||||
service: name=cron state=restarted
|
|
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install LetsEncrypt client
|
|
||||||
apt: name=letsencrypt state=latest
|
|
||||||
|
|
||||||
- name: stop nginx if it already is up and running
|
|
||||||
service: name=nginx state=stopped
|
|
||||||
register: result
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Generate LetsEncrypt TLS certificates
|
|
||||||
shell: letsencrypt certonly -n -m "letsencrypt@sadiqsaif.ca" --agree-tos --webroot -d {{ item }} -w /srv/www/{{ item }}/
|
|
||||||
with_items:
|
|
||||||
- asininetech.com
|
|
||||||
- entropynet.net
|
|
||||||
- i.asininetech.com
|
|
||||||
- sadiqsaif.ca
|
|
||||||
- staticsafe.ca
|
|
||||||
- twoshadesofbrown.com
|
|
||||||
- wiki.staticsafe.ca
|
|
||||||
- sadiqsaif.com
|
|
||||||
- netdata.asininetech.net
|
|
||||||
|
|
||||||
- name: start nginx if we stopped it before
|
|
||||||
service: name=nginx state=started
|
|
||||||
when: result|succeeded
|
|
||||||
|
|
||||||
- name: Add a cron job to automatically renew LetsEncrypt certificates
|
|
||||||
copy: src=letsencrypt-renew dest=/etc/cron.daily/letsencrypt-renew mode=0700
|
|
||||||
notify:
|
|
||||||
- restart cron
|
|
||||||
|
|
@ -21,13 +21,6 @@
|
|||||||
roles:
|
roles:
|
||||||
- icinga-client
|
- icinga-client
|
||||||
|
|
||||||
#- name: Generate LE certs on required servers
|
|
||||||
# hosts: webservers
|
|
||||||
# user: root
|
|
||||||
|
|
||||||
# roles:
|
|
||||||
# - letsencrypt
|
|
||||||
|
|
||||||
- hosts: webservers
|
- hosts: webservers
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
Loading…
Reference in New Issue
Block a user