Skip to content

Commit c1bca64

Browse files
committed
Add TTL to DNS record (default was 24h)
1 parent 9bf1405 commit c1bca64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manage_record.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
type: "A"
3939
value: "{{ external_ip_address }}"
4040
zone_id: "{{ zone_id.json.zones[0].id }}"
41+
ttl: 60
4142
when: (dns_record_id | length == 0 and external_ip_address | length > 0)
4243

4344
- name: DYNDNS Record does exist, will update it with external IP as {{ external_ip_address }} if it had changed
@@ -52,6 +53,7 @@
5253
type: "A"
5354
value: "{{ external_ip_address }}"
5455
zone_id: "{{ zone_id.json.zones[0].id }}"
56+
ttl: 60
5557
when: (dns_record_id | length > 0 and dns_record_value != external_ip_address and external_ip_address | length > 0)
5658

5759
rescue:

0 commit comments

Comments
 (0)