2018-08-23 20:53:25 +00:00
|
|
|
---
|
|
|
|
# This role sets up a Let's Encrypt certificate for the
|
|
|
|
# Mastodon instance
|
|
|
|
|
|
|
|
- name: Stop nginx for now
|
|
|
|
service: name=nginx state=stopped
|
|
|
|
- name: Generate standalone Let's Encrypt TLS certificate for Mastodon instance
|
2019-01-12 19:42:49 +00:00
|
|
|
shell: letsencrypt certonly -n --agree-tos --standalone -d {{ LOCAL_DOMAIN }} -m "webmaster@{{ LOCAL_DOMAIN }}"
|
2018-08-23 20:53:25 +00:00
|
|
|
- name: Restart nginx
|
|
|
|
service: name=nginx state=started
|
|
|
|
- name: Generate webroot Let's Encrypt TLS certificate for Mastodon instance
|
2019-01-12 19:42:49 +00:00
|
|
|
shell: letsencrypt certonly -n --webroot -d {{ LOCAL_DOMAIN }} -w /home/mastodon/live/public/ -m "webmaster@{{ LOCAL_DOMAIN }}"
|