2021-02-11 23:25:37 +01:00
|
|
|
# Dehydrated Domains
|
|
|
|
|
|
|
|
Ansible role to configure domains for use with dehydrated
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
vars:
|
|
|
|
dehydrated_domains:
|
|
|
|
name: example.com
|
2021-02-13 17:38:44 +01:00
|
|
|
alternate_names: "www.example.com web.example.com"
|
2021-02-11 23:25:37 +01:00
|
|
|
deploy_challenge_hook: printf 'server 127.0.0.1\nupdate add _acme-challenge.%s 300 IN TXT "%s"\nsend\n' "${DOMAIN}" "${TOKEN_VALUE}" | nsupdate -k /var/run/named/session.key
|
|
|
|
clean_challenge_hook: printf 'server 127.0.0.1\nupdate delete _acme-challenge.%s TXT "%s"\nsend\n' "${DOMAIN}" "${TOKEN_VALUE}" | nsupdate -k /var/run/named/session.key
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: dehydrated-domains
|
|
|
|
|
|
|
|
```
|