aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-07-30 23:07:35 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-07-30 23:07:35 +0200
commit5ecd6c2c2586495bb23d5d57c334edcb10cd8492 (patch)
treefbaaf6fb305e953f0197e0bc917cf2d9b84fc35f /ansible
parent6cc37a8a6445e6fe4551f1a51670861756d8d5db (diff)
downloadinfra-5ecd6c2c2586495bb23d5d57c334edcb10cd8492.tar.gz
infra-5ecd6c2c2586495bb23d5d57c334edcb10cd8492.tar.bz2
infra-5ecd6c2c2586495bb23d5d57c334edcb10cd8492.tar.xz
infra-5ecd6c2c2586495bb23d5d57c334edcb10cd8492.zip
Updating vpn dns.
Diffstat (limited to 'ansible')
-rw-r--r--ansible/wg0/wireguard-wg0-terraform.yml3
1 files changed, 2 insertions, 1 deletions
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 %}
-