2021-02-23 20:54:32 +01:00
|
|
|
# Dehydrated
|
2021-02-11 23:25:37 +01:00
|
|
|
|
2021-02-23 21:13:03 +01:00
|
|
|
Ansible role to configure dehydrated
|
2021-02-11 23:25:37 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
vars:
|
2021-02-15 18:06:35 +01:00
|
|
|
dehydrated_force_update: True
|
2021-02-13 18:00:33 +01:00
|
|
|
dehydrated_domains:
|
|
|
|
- name: example.com
|
2021-02-14 17:41:27 +01:00
|
|
|
alternate_names:
|
|
|
|
- www.example.com
|
|
|
|
- web.example.com
|
2021-02-13 18:00:33 +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
|
2021-02-11 23:25:37 +01:00
|
|
|
|
|
|
|
roles:
|
2021-02-23 21:13:03 +01:00
|
|
|
- role: dehydrated
|
2021-02-11 23:25:37 +01:00
|
|
|
```
|