From 7ffa5e314af1ba7760a7072c69bf5458deb9355b Mon Sep 17 00:00:00 2001 From: Antwan <antoine.blancy@etu.hesge.ch> Date: Tue, 12 Apr 2022 00:06:15 +0200 Subject: [PATCH] a --- templates/wg | 2 +- wg.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/wg b/templates/wg index 3b6881d..8d6f7ae 100644 --- a/templates/wg +++ b/templates/wg @@ -8,4 +8,4 @@ PublicKey = {{ publickey }} Endpoint = {{ dst }}:51902 AllowedIPs = 10.0.0.0/24 -{{ hostvars }} \ No newline at end of file +{{ varsi }} \ No newline at end of file diff --git a/wg.yml b/wg.yml index b2e0f83..6aebfcc 100644 --- a/wg.yml +++ b/wg.yml @@ -6,6 +6,7 @@ publickey: "{{ hostvars['h2'].publickey }}" myAddr: 10.0.0.10 dst: 10.0.3.2 + varsi: "{{ hostvars }}" - name: h2_key_set hosts: h1 @@ -15,4 +16,5 @@ publickey: "{{ hostvars['h1'].publickey }}" myAddr: 10.0.0.20 dst: 10.0.1.2 + varsi: "{{ hostvars }}" -- GitLab