ANSIBLE-8

Create a role for setting up a load balancer and web server dynamically

Ansible role for setting up load balancer using HAProxy and webserver using Apache software.

Introduction 🤓

Action plan 🔥

Let’s start the action ☄️

#create directory and change directory
$ mkdir roles
$ cd roles
#create ansible role
$ ansible-galaxy init haproxy

Use the roles

$ ansible-playbook webserver_lb.yml -i inventory

Output

Thank you…

DevOps Engineer at Mindbowser Inc| www.shubhamrasal.me

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store