diff --git a/ansible/roles/gateway/files/wireguard-client.conf b/ansible/roles/gateway/files/wireguard-client.conf index 93e5d6c..0fb89e3 100644 --- a/ansible/roles/gateway/files/wireguard-client.conf +++ b/ansible/roles/gateway/files/wireguard-client.conf @@ -1,6 +1,9 @@ [Interface] Address = {{ item.value.ip }} PrivateKey = {{ item.value.private_key }} +{% if item.value != wireguard.clients.intersect %} +DNS = {{ wireguard.clients.intersect.ip }} +{% endif %} [Peer] PublicKey = {{ wireguard.server.public_key }}