From e45118eef1b6eca6853e29a684e2b47347f79fd4 Mon Sep 17 00:00:00 2001 From: Jimmy Chevanne Date: Fri, 16 Feb 2024 14:48:52 +0100 Subject: [PATCH] maj role lb-front-ssl --- roles/lb-front-ssl/tasks/main.yml | 15 +++++++++++++++ s-lb.yml | 1 + 2 files changed, 16 insertions(+) diff --git a/roles/lb-front-ssl/tasks/main.yml b/roles/lb-front-ssl/tasks/main.yml index 6d0bab7..da8b9cd 100644 --- a/roles/lb-front-ssl/tasks/main.yml +++ b/roles/lb-front-ssl/tasks/main.yml @@ -10,6 +10,21 @@ csr_path: /etc/haproxy/crt/csr/haproxy.csr provider: selfsigned +- name: parametre global + blockinfile: + path: /etc/haproxy/haproxy.cfg + block: | + global + log /dev/log local0 + log /dev/log local1 notice + chroot /var/lib/haproxy + stats socket /run/haproxy/admin.sock mode 660 level admin + stats timeout 30s + user haproxy + group haproxy + daemon + ssl-server-verify none + - name: parametre backend et fontend blockinfile: path: /etc/haproxy/haproxy.cfg diff --git a/s-lb.yml b/s-lb.yml index 54e9583..68f3112 100644 --- a/s-lb.yml +++ b/s-lb.yml @@ -6,6 +6,7 @@ - base - goss - lb-front + #- lb-front-ssl #- zabbix-cli - ssh-cli - post