Installs letsencrypt as docker container.
- Docker
- Nginx
- Create volume paths for docker container
- Create helper scripts
- Setup cron job
- Setup logrotate config
Variable | Type | Mandatory? | Default | Description |
---|---|---|---|---|
image_name | text | no | quay.io/letsencrypt/letsencrypt | Docker image name |
image_version | text | no | latest | Docker image version |
text | yes | Your e-mail address | ||
keysize | text | no | 4096 | |
config_volume | path as text | no | /srv/docker/letsencrypt/config | |
data_volume | path as text | no | /srv/docker/letsencrypt/data | |
www_volume | path as text | no | /srv/docker/letsencrypt/www | |
script_path | path as text | no | /opt/letsencrypt | |
domains | array of texts | no | [] | list of your (sub-)domains you want to manage letsencrypt certificates |
Usage (without parameters):
- hosts: servers
roles:
- install-docker-letsencrypt
Usage (with parameters):
- hosts: servers
roles:
- role: install-docker-letsencrypt
email: XXXX@gmail.com
www_volume: /srv/docker/letsencrypt/www