20 lines
713 B
YAML
20 lines
713 B
YAML
---
|
|
# Clean up DNS challenges for DNS provider HostTech
|
|
- name: Cleaning up challenge DNS entries for domains {{ ', '.join(acme_certificate_domains) }} via HostTech API
|
|
hosttech_dns_record:
|
|
state: absent
|
|
zone: "{{ item.key | regex_replace('^(?:.*\\.|)([^.]+\\.[^.]+)$', '\\1') }}"
|
|
record: "{{ item.key }}"
|
|
type: TXT
|
|
ttl: 300
|
|
value: "{{ item.value }}"
|
|
overwrite: true
|
|
hosttech_username: "{{ acme_certificate_hosttech_username }}"
|
|
hosttech_password: "{{ acme_certificate_hosttech_password }}"
|
|
delegate_to: localhost
|
|
run_once: true
|
|
with_dict: "{{ acme_certificate_INTERNAL_challenge.get('challenge_data_dns', {}) }}"
|
|
tags:
|
|
- issue-tls-certs-newkey
|
|
- issue-tls-certs
|