From 90222678cec1fbf6d20d52b647408db836060632 Mon Sep 17 00:00:00 2001
From: Elam Monnot <elam.monnot@ip-192-168-0-21>
Date: Wed, 25 Jan 2023 11:26:54 +0100
Subject: [PATCH] correction haproxy

---
 roles/lb-front/files/haproxy.cfg | 1 -
 roles/lb-front/tasks/main.yml    | 4 ++--
 s-lb.yml                         | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/roles/lb-front/files/haproxy.cfg b/roles/lb-front/files/haproxy.cfg
index 0f09078..37933e3 100644
--- a/roles/lb-front/files/haproxy.cfg
+++ b/roles/lb-front/files/haproxy.cfg
@@ -44,7 +44,6 @@ backend fermeweb
 	#option httpchk HEAD / HTTP/1.0
 	server s-lb-web1 192.168.101.1:80 check
 	server s-lb-web2 192.168.101.2:80 check
-	#server s-lb-web3 192.168.101.3:80 check
 
 
 listen stats
diff --git a/roles/lb-front/tasks/main.yml b/roles/lb-front/tasks/main.yml
index 9b29b92..a419b51 100644
--- a/roles/lb-front/tasks/main.yml
+++ b/roles/lb-front/tasks/main.yml
@@ -15,8 +15,8 @@
         balance roundrobin
         option httpclose
         #option httpchk HEAD / HTTP/1.0
-        server web1.test 192.168.56.3:80 check
-        #server web2.test 192.168.56.4:80 check
+        server s-lb-web1 192.168.101.1:80 check
+        server s-lb-web2 192.168.101.2:80 check
 
 - name: redemarre haproxy
   service:
diff --git a/s-lb.yml b/s-lb.yml
index 7b0374f..9579662 100644
--- a/s-lb.yml
+++ b/s-lb.yml
@@ -5,7 +5,7 @@
    roles:
      - base
      - goss
-     - s-lb-ab
+     - lb-front
      - snmp-agent
      - post