Merge pull request #10 from dracos/letsencrypt-renewal-fix

Make sure LE config is correct for renewals.
This commit is contained in:
Sadiq Saif 2018-11-23 09:21:32 -05:00 committed by GitHub
commit 9f98011287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
authenticator = webroot
webroot-path = /home/mastodon/live/public/

View File

@ -24,6 +24,14 @@
src: letsencrypt-renew.sh src: letsencrypt-renew.sh
dest: /etc/cron.daily/letsencrypt-renew.sh dest: /etc/cron.daily/letsencrypt-renew.sh
mode: 0700 mode: 0700
- name: Make Let's Encrypt configuration directory
file:
dest: /root/.config/letsencrypt
state: directory
- name: Copy Let's Encrypt configuration file
copy:
src: cli.ini
dest: /root/.config/letsencrypt/cli.ini
- name: Run nginx install tasks - name: Run nginx install tasks
include_tasks: install.yml include_tasks: install.yml
when: install is defined when: install is defined