diff options
Diffstat (limited to 'roles/wireguard/templates')
-rw-r--r-- | roles/wireguard/templates/dcontroller.conf.j2 | 2 | ||||
-rw-r--r-- | roles/wireguard/templates/host.conf.j2 | 2 | ||||
-rw-r--r-- | roles/wireguard/templates/hostname.j2 (renamed from roles/wireguard/templates/hostname.tun0.j2) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/roles/wireguard/templates/dcontroller.conf.j2 b/roles/wireguard/templates/dcontroller.conf.j2 index c1fd887..5771ef6 100644 --- a/roles/wireguard/templates/dcontroller.conf.j2 +++ b/roles/wireguard/templates/dcontroller.conf.j2 @@ -1,5 +1,5 @@ -# wireguard client configuration ~~ /etc/wireguard/*.conf +# wireguard dcontroller configuration ~~ /etc/wireguard/*.conf # managed by Ansible {% set dcontroller_keys = lookup("file", wg_dcontroller_keys).splitlines() %} diff --git a/roles/wireguard/templates/host.conf.j2 b/roles/wireguard/templates/host.conf.j2 index c25d937..2a5acc5 100644 --- a/roles/wireguard/templates/host.conf.j2 +++ b/roles/wireguard/templates/host.conf.j2 @@ -5,7 +5,7 @@ {% set dcontroller_keys = lookup("file", wg_dcontroller_keys).splitlines() %} [Interface] -Address = {{ ip.in }} +Address = {{ ip.in }}, fd00:10:10::{{ ip.in.split(".")[3] }} PrivateKey = {{ host_keys[0] }} [Peer] diff --git a/roles/wireguard/templates/hostname.tun0.j2 b/roles/wireguard/templates/hostname.j2 index 3903ccb..3903ccb 100644 --- a/roles/wireguard/templates/hostname.tun0.j2 +++ b/roles/wireguard/templates/hostname.j2 |