netz39-infra-ansible/roles/dehydrated
2021-02-28 13:27:25 +00:00
..
defaults domains need a default 2021-02-28 13:27:25 +00:00
handlers jetzt gibts ein flag für forced update 2021-02-28 13:27:24 +00:00
tasks domains need a default 2021-02-28 13:27:25 +00:00
templates separate out crin instead of domains 2021-02-28 13:27:25 +00:00
README.md separate out crin instead of domains 2021-02-28 13:27:25 +00:00

Dehydrated

Ansible role to configure domains for use with dehydrated

Usage

vars:
  dehydrated_force_update: True
  dehydrated_domains:
    - name: example.com
      alternate_names:
        - www.example.com
        - web.example.com
      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