Skip to content

Commit 8ef2dcd

Browse files
author
Andreas Hering
committed
add code documentation for replacing '*.'
1 parent 419c0d7 commit 8ef2dcd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

roles/letsencrypt/tasks/dns-challenge-autodns.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"origin": "{{ item }}",
2626
"resourceRecordsAdd": [
2727
{
28+
# "remove" '*.' from entry when it occurs. without it it would try to create a
29+
# record like _acme-challenge.*.example.com which is not allowed by AutoDNS
30+
# see: https://jinja.palletsprojects.com/en/master/templates/#replace
31+
# and: https://jbmoelker.github.io/jinja-compat-tests/filters/replace/#pattern
2832
"name": "_acme-challenge.{{ item | replace ('*.','') }}",
2933
"ttl": 60,
3034
"type": "TXT",

0 commit comments

Comments
 (0)