Install dehydrated with http-01, test domains against staging and finally deploy them for real.
Live dehydrated will only be run if the contents of /etc/dehydrated/domains.txt have changed.
As of now this role provides the SSL-certificates for lihas_apache reverse proxy or directly named domains
To run solo:
ansible-galaxy install -r requirements.yml
ansible-playbook -i localhost, dehydrated.yml
LIHASVARS:
variables:
LETSENCRYPTMAIL: a@example.com
roles:
rproxy:
domains:
DOMAINNAME:
%:
config:
roles:
rproxy:
domains:
DOMAINNAME:
%:
config:
roles:
dehydrated:
domains:
DOMAINNAME: ~
# list of services to reload after certificate deploy
%.config.roles.dehydrated.services.reload: []
# list of services to restart after certificate deploy
%.config.roles.dehydrated.services.restart: []
- lihas_variables
- lihas_apache
---
- hosts: '*'
role: lihas_dehydrated
...
The playbook requests staging certificates on each run unless a valid saging certificate is already present.
If manual debugging is needed you can use staging by touching /tmp/dehydratedtest
, don't forget to remove it afterwards.