From 36b8ce3a80ef8665162b5c766ce397e252ff238e Mon Sep 17 00:00:00 2001 From: lightlike Date: Fri, 21 Jun 2024 09:16:02 +0200 Subject: [PATCH] fix ipv6 and replace old entries --- ansible/update-dns.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/update-dns.yaml b/ansible/update-dns.yaml index 500e296..e62c0f7 100644 --- a/ansible/update-dns.yaml +++ b/ansible/update-dns.yaml @@ -49,6 +49,7 @@ record: "{{ item }}" type: "A" value: "{{ lookup('file', ipv4_path) }}" + solo: yes with_items: "{{ lookup('env','RECORDS') | split }}" - name: Create IPv6 Record @@ -60,6 +61,7 @@ customer_id: "{{ lookup('env','CUSTOMER_ID') }}" domain: "{{ lookup('env','DOMAIN') }}" record: "{{ item }}" - type: "A" + type: "AAAA" value: "{{ lookup('file', ipv6_path) }}" + solo: yes with_items: "{{ lookup('env','RECORDS') | split }}"