forked from Netz39_Admin/netz39-infra-ansible
optional sind auch alternate_names für die domains möglich
This commit is contained in:
parent
f7a1fe8143
commit
4d2287d525
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ Ansible role to configure domains for use with dehydrated
|
||||||
vars:
|
vars:
|
||||||
dehydrated_domains:
|
dehydrated_domains:
|
||||||
name: example.com
|
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
|
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
|
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
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
- name: Ensure Domains are in domains.txt
|
- name: Ensure Domains are in domains.txt
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ dehydrated_config_dir }}/domains.txt"
|
path: "{{ dehydrated_config_dir }}/domains.txt"
|
||||||
line: "{{ item.name }}"
|
line: "{{ item.name }} {{ item.alternate_names|default(omit) }}"
|
||||||
with_items: dehydrated_domains
|
with_items: dehydrated_domains
|
||||||
notify: dehydrated cron
|
notify: dehydrated cron
|
Loading…
Reference in a new issue