Skip to content

Lab4: Les PlayBooks

  • Installer les deux serveurs web
  • Copier des fichiers distincts
  • Démarrer les services
  • Installer le haproxy
  • Copier le fichier de config haproxy.cfg
Terminal window
more /etc/haproxy/haproxy.cfg
Terminal window
frontend http_frontend
bind *:80
default_backend http_backend
backend http_backend
mode http
balance roundrobin
server server1 hostX2:80 check
server server2 hostX3:80 check
  • Ajouter un handler de restart du service haproxy lors de la copie d’un nouveau fichier de config