Image for post
Image for post

ANSIBLE-9

Launch and Deploy python flask app on docker container using ansible

Even this is a very rare use case where we need to configure the container using ansible. Enabling ssh inside the container is not a good practice, but in some cases, we might need to do this.

  • My use case was to set up an ansible practical lab where I can use multiple hosts of different Linux instantly without wasting more resources. This gives me the power to launch each time fresh container and test my playbooks on multiple os distributions with diff versions.


Image for post
Image for post

ANSIBLE-8

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

Introduction 🤓

In this article, we will write a simple role for configuring HAPorxy software for load balancing which will dynamically add backend servers.

I have also covered what is a load balancer and how to write the playbook for configuring a load balancer on AWS using a playbook.
You can refer to the blog to know more about load balancer and configuration.

In this blog, we will focus more on writing and using the ansible role. This is the continuation of the below blog which configures web servers. …


Image for post
Image for post

ANSIBLE-7

Write Ansible role to configure apache webserver on Redhat and Ubuntu.

What is ansible?

Ansible is an open-source IT Configuration Management, Deployment, and Orchestration tool. Ansible helps us to gain large productivity in a variety of automation challenges. This tool is very simple to use and also powerful enough to automate complex multi-tier IT application environments.

Ansible offers a simple architecture that doesn’t require special software to be installed on nodes. It also provides a robust set of features and built-in modules which facilitate writing automation scripts.

In this article, we are going to write an Ansible role to configure the Apache webserver. The Apache HTTP server is the most widely-used web server in…


Image for post
Image for post

Kubernetes-1

Introduction to Kubernetes. Why we need Kubernetes? Use cases of Kubernetes.

Introduction 🤓

When you talk to IT guys about containers, I am sure the next topic of conversion will be on container management and orchestration.

Hey, but what is a container?


Image for post
Image for post

ANSIBLE-6

let’s discover the automation with ansible tower use cases

Before understanding what is ansible tower, let's understand what is automation and how an ansible and ansible tower helps us to achieve that.

What is automation?

Automation happens when one person meets a problem they never want to solve again.

I would like to define it in simpler words…
when someone doesn't want to repeat the same task again and again then That's where automation happens.


Image for post
Image for post

ANSIBLE-5

Configure Haproxy dynamically when a new webserver gets added using ansible.

Before starting how to configure the load balancer and web server let’s understand what is load balancer and webservers.

Load Balancer

The load balancer is software by which we can distribute some tasks to a set of resources to achieve more efficiency in the overall processing.

Why we need a load balancer?

Suppose you have a single server and it has standard hardware and software... and as you grow or suddenly traffic for your app increases. Now each server has some limitations for serving requests at a time, it can be hardware as well as software. Now you decided to add one more server and it comes with…


Image for post
Image for post

ANSIBLE-4

Configure Apache server using ansible-playbook

Introduction

Redhat Ansible

Ansible is an open-source automation tool by which we can automate all cloud provisioning, configuration management, application deployment,intra-service orchestration, and many more IT needs.

Ansible is an open-source community project sponsored by Red Hat, it’s the simplest way to automate IT. Ansible is the only automation language that can be used across entire IT teams from systems and network administrators to developers and managers.
You can read more about ansible in the below article and how it helps in DevOps.

Apache Webserver

Apache is an open-source and free web server software that powers around 40% of websites around the world. The official…


Image for post
Image for post
How to configure Hadoop Cluster using Ansible?

Ansible -3

In this article, we will configure the Hadoop name node and data node using ansible. — Shubham Rasal

Introduction

We are going to write playbooks for installing Hadoop and configuring both the name node and data nodes.

I am assuming you have installed ansible and set the inventory file path.

In this article, I have given high-level details about what is Hadoop and why it is used? Check it if you want to know more about Hadoop.

so without delay start writing our playbooks.

Action

Action mode 🔥

We will use ssh public key authentication to configure managed/target nodes. The motivation to use public-key authentication…


Image for post
Image for post

Ansible -2

Launch Apache webserver docker container using ansible

We are going to launch the apache webserver docker container on top of a managed node with the help of Ansible.

Before moving to the action let's take a look at what is docker, ansible, and apache server so we will get a little idea about these technologies and the need for this integration. so without waiting let's get into the introduction.

Introduction 🤓

Redhat Ansible

Ansible is an open-source automation tool by which we can automate all cloud provisioning, configuration management, application deployment,intra-service orchestration, and many more IT needs.

Ansible is an open-source community project sponsored by Red Hat, it’s the simplest way…


AWS -11

Creating cloud architecture for the web app with low latency for resources

Image for post
Image for post

We are going to create the above architecture using AWS CLI. Let’s discuss architecture and how we are going to do it?
🔶The architecture includes-
◼️ Launch EC2 instance
◼ Create EBS volume
◼Mount EBS volume to EC2 instance
◼Create an S3 bucket
◼Upload static objects such as images, videos, or documents in the S3 bucket
◼Create a content delivery network (CDN) using aws CloudFront distribution for S3 bucket
◼️️ Configure instance as the webserver
◼Place CloudFront URL in an application for security and low latency
◼Deploy source code on EC2 instance webserver.

The final goal is to achieve all…

Shubham Rasal

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