File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ debian_pin_packages: true
11
11
12
12
client_vpn_ip : " "
13
13
client_wireguard_path : " ~/wg.conf"
14
+ client_wireguard_dns : false
14
15
15
16
wireguard_additional_peers : false
16
17
wireguard_post_up : false
Original file line number Diff line number Diff line change 1
1
[Interface]
2
2
Address = {{ client_vpn_ip }}
3
3
PrivateKey = {{ client_privatekey.content | b64decode | trim }}
4
+ {% if client_wireguard_dns %}
5
+ DNS = {{ client_wireguard_dns }}
6
+ {% endif %}
4
7
5
8
{% for node in play_hosts %}
6
9
[Peer]
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ ListenPort = {{ wireguard_port }}
11
11
{% if wireguard_mtu is defined %}
12
12
MTU = {{ wireguard_mtu }}
13
13
{% endif %}
14
+ {% if client_wireguard_dns %}
15
+ DNS = {{ client_wireguard_dns }}
16
+ {% endif %}
14
17
15
18
{% for node in play_hosts %}
16
19
{% if inventory_hostname != hostvars [node ]['inventory_hostname' ] %}
You can’t perform that action at this time.
0 commit comments