Skip to content

Commit 2b2adda

Browse files
Merge pull request #4 from thedatabaseme/develop
added ttl
2 parents 43b1080 + 34242b9 commit 2b2adda

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dyndns.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
dns_zone: "mydomain.com"
1010
dyndns_names:
1111
- "dyndns"
12+
dyndns_ttl: 300
1213
api_key: ""
1314
external_ip_address: ""
1415

manage_record.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
type: "A"
3737
value: "{{ external_ip_address }}"
3838
zone_id: "{{ zone_id.json.zones[0].id }}"
39+
ttl: "{{ dyndns_ttl }}"
3940
when: (dns_record_id | length == 0 and external_ip_address | length > 0)
4041

4142
- name: DYNDNS Record does exist, will update it with external IP as {{ external_ip_address }}
@@ -50,6 +51,7 @@
5051
type: "A"
5152
value: "{{ external_ip_address }}"
5253
zone_id: "{{ zone_id.json.zones[0].id }}"
54+
ttl: "{{ dyndns_ttl }}"
5355
when: (dns_record_id | length > 0 and external_ip_address | length > 0)
5456

5557
rescue:

0 commit comments

Comments
 (0)