https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
Install nginx and letsencrypt for simple hosting of static resources.
No host requirements. A dns record must be setup for the target.
letsencrypt_domain_name
: The domain name to be used. There must be a working dns pointer for this name for the letsencrypt certificate to be created.
letsencrypt_email
: Your email address. Required for creation of letsencrypt certificate.
letsencrypt_extra_location_blocks
: Extra location block config for nginx.
No extrenal dependencies.
Example how to use the role within a playbook:
- hosts: servers
roles:
- { role: mattiaslundberg.letsencrypt, letsencrypt_domain_name: "mydomain.com", letsencrypt_email: "[email protected]" }
MIT