From af1ac9ccfa8b4ccdc59eca1b4d6dca0c4390ebdb Mon Sep 17 00:00:00 2001 From: Antwan <antoine.blancy@etu.hesge.ch> Date: Mon, 11 Apr 2022 21:52:43 +0200 Subject: [PATCH] a --- templates/wg | 2 +- wg.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/wg b/templates/wg index 9342b51..737dc3d 100644 --- a/templates/wg +++ b/templates/wg @@ -5,6 +5,6 @@ PostUp = wg set %i private-key privatekey ListenPort = 51902 [Peer] -PublicKey = {{ server_pubkey }} +PublicKey = {{ }} Endpoint = {{ dst }}:51888 AllowedIPs = 10.0.0.0/24 diff --git a/wg.yml b/wg.yml index bf0ccd4..c189e7c 100644 --- a/wg.yml +++ b/wg.yml @@ -3,7 +3,7 @@ roles: - role: wg vars: - otherHost: h2 + server_pubkey: "{{ hostvars[h2].publickey }}" myAddr: 10.0.0.1 dst: 10.0.3.2 @@ -12,7 +12,7 @@ roles: - role: wg vars: - otherHost: h1 + server_pubkey: "{{ hostvars[h2].publickey }}" myAddr: 10.0.0.2 dst: 10.0.1.2 -- GitLab