From 5ecd6c2c2586495bb23d5d57c334edcb10cd8492 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 30 Jul 2024 23:07:35 +0200 Subject: Updating vpn dns. --- ansible/wg0/wireguard-wg0-terraform.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ansible') diff --git a/ansible/wg0/wireguard-wg0-terraform.yml b/ansible/wg0/wireguard-wg0-terraform.yml index 33b4b47..c4c809c 100644 --- a/ansible/wg0/wireguard-wg0-terraform.yml +++ b/ansible/wg0/wireguard-wg0-terraform.yml @@ -7,11 +7,12 @@ content: | # Generated from ansible data {% for host, data in wireguard_wg0.hosts.items() %} + {% if data.state | default("present") == "present" %} resource "linode_domain_record" "vpn-{{ host }}" { domain_id = linode_domain.root.id name = "{{ host }}.vpn" record_type = "AAAA" target = "{{ data.ipv6 }}" } + {% endif %} {% endfor %} - -- cgit v1.2.3