Skip to content

Commit 76d70e6

Browse files
authored
autodns: remove TXT RRs when validation fails (#74)
* autodns: remove TXT RRs when validation fails If the validation or the certificate download fails for whatever reason the TXT record for the domain wasn't removed but stayed in the Zone. The record removal step should be executed irrespective of the result of the validation step
1 parent 4ba2962 commit 76d70e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/acme/tasks/challenge/dns-01/autodns.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
remaining_days: "{{ acme_remaining_days }}"
6161
data: "{{ challenge }}"
6262

63+
always:
6364
- name: remove created SAN TXT records to keep DNS zone clean
6465
ansible.builtin.uri:
6566
url: "https://api.autodns.com/v1/zone/{{ acme_domain.zone }}/a.ns14.net"

0 commit comments

Comments
 (0)