Skip to content

Commit

Permalink
set TTL to 600
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim committed Dec 3, 2024
1 parent e4cfbe5 commit d33591a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions playbooks/roles/infra-aws-sandbox/tasks/ddns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
- name: Override NS records to DDNS
when: ddns_ns_records | sort != ns_records | sort
community.general.nsupdate:
state: present
server: "{{ lookup('dig', ddns_server) }}"
zone: "{{ ddns_domain }}."
record: "{{ account_name }}.{{ ddns_domain }}."
value: "{{ ns_records }}"
type: NS
port: "{{ ddns_port | d('53') }}"
key_name: "{{ ddns_key_name }}"
key_algorithm: "{{ ddns_key_algorithm | d('hmac-sha512') }}"
key_secret: "{{ ddns_key_secret }}"
state: present
port: "{{ ddns_port | d('53') }}"
type: NS
ttl: 600
zone: "{{ ddns_domain }}."
record: "{{ account_name }}.{{ ddns_domain }}."
value: "{{ ns_records }}"

0 comments on commit d33591a

Please sign in to comment.