From 7f7be286ef43a3b078c6bbcba6371d651776d33c Mon Sep 17 00:00:00 2001
From: "florent.didion" <florent.didion@etu.hesge.ch>
Date: Fri, 7 Apr 2023 22:12:35 +0200
Subject: [PATCH] ended propre

---
 ansible_files/playbook/host_vars/H2.yaml         | 1 +
 ansible_files/playbook/templates/nginx_config.j2 | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ansible_files/playbook/host_vars/H2.yaml b/ansible_files/playbook/host_vars/H2.yaml
index 4b38cc2..de987f8 100644
--- a/ansible_files/playbook/host_vars/H2.yaml
+++ b/ansible_files/playbook/host_vars/H2.yaml
@@ -10,6 +10,7 @@ tunnel:
   name: wg0
   pubKey: pP8tgE8LBRk+UnZMkg9dbQC5fgWJUrqqZbKi4yjjI2Y=
   address: 10.0.0.2/24
+  expose: 10.0.0.2
   port: 51822
   peerkey: /enZJcQ/tPK5TKu/KR1Y7nS4MYSgeuEz4vyQ72ahzRE=
   peerendpoint: 1.0.0.3:51821
diff --git a/ansible_files/playbook/templates/nginx_config.j2 b/ansible_files/playbook/templates/nginx_config.j2
index 2f336ea..4f872d2 100644
--- a/ansible_files/playbook/templates/nginx_config.j2
+++ b/ansible_files/playbook/templates/nginx_config.j2
@@ -1,7 +1,7 @@
 # ANSIBLE MANAGED
 #
 server {
-	listen {{ tunnel.address }}:80 default_server;
+	listen {{ tunnel.expose }}:80 default_server;
 
 	root /var/www/html;
 
-- 
GitLab