From d33591ada0883e8f31cd669e4b8f40b89c13ed7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Cor=C3=A9?= Date: Tue, 3 Dec 2024 16:55:18 +0100 Subject: [PATCH] set TTL to 600 --- playbooks/roles/infra-aws-sandbox/tasks/ddns.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/playbooks/roles/infra-aws-sandbox/tasks/ddns.yml b/playbooks/roles/infra-aws-sandbox/tasks/ddns.yml index 1d1dafe..8a6f457 100644 --- a/playbooks/roles/infra-aws-sandbox/tasks/ddns.yml +++ b/playbooks/roles/infra-aws-sandbox/tasks/ddns.yml @@ -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 }}"