||2 years ago|
|files||2 years ago|
|tasks||2 years ago|
|templates||2 years ago|
|README.md||2 years ago|
Websites ansible role
This role is here to setup a website with nginx, and letsencrypt certificates using acme.sh.
Without parameters, this setups nginx, php-fpm, with a default http to https redirection and letsencrypt passthrough.
The TLS port is 8443 (on localhost) for sslh passthrough.
Uses the acme_sh role.
websites_enabled: a list of websites to enable, the first of which will serve as an identifer for acme.sh.
it expects the website-specific nginx config files to be in
<playbook root>/templates/nginx/<domain>.conf.j2. If a file is not found (e.g. because the file serves both
@), it will continue the process anyway.