In this article we will:

  1. Launch 3 Instances on AWS
  2. Configure 2 of them as Apache Web Servers
  3. Configure 1 of them HAProxy Load Balancer

Docker:

  • Configure HTTPD Server on Docker Container
  • Set Up Python Interpreter and running Python Code on Docker Container

Setting Up Docker

  • Set up repo for docker-ce Software.
    “vi /etc/yum.repos.d/<reponame>.repo”

  1. Integrate LVM with Hadoop and Provide Elasticity to DataNode Storage.
  2. Increase or Decrease the Size of Static Partition in Linux
  3. Automate the LVM Partition using Python-Script.

LVM


  • The name of Apache Web Server in Redhat 8 is httpd.
  • And the name of Apache Web Server in Ubuntu 20 is apache2.

  • System A -> 192.168.0.1
  • System B -> 192.168.0.2
  • System C-> 192.168.0.3
  • Adding Route in System A

In this article, we will create an Ansible Playbook which will:

  • Install Docker
  • Launch Container
  • Update Inventory File
  • Configure Container as Web Server
  • Initially, the Inventory file is empty.

  1. We will create an ansible role httpd to configure Httpd WebServer.

Role for Configuring HTTPD

  • Create a Role

Karan Agrawal

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