LAUNCHING AND CONFIGURING WEBSERVER IN DOCKER THROUGH ANSIBLE

1. Ansible

2. Controller Node

3. Managed Node

4. Inventory

5. Configuration File

6. Module

7. Playbook

8. Ad-hoc

9. Resource Abstraction Layer

Note:

Let us now commence to create the setup proposed :

1. Installing Ansible

PYTHON IS INSTALLED
ANSIBLE IS INSTALLED

2. Setting Up Inventory

3. Configuration File

1. Hosts and Inputs

ANSIBLE CODE TO TAKE INPUTS AND DENOTING HOSTS
TAKING INPUTS FROM USER

2. Create and Mount the Folder

Directory Created
DIRECTORY MOUNTED WITH DISK

3. Setup Yum Repository

CODE TO SETTING UP YUM REPOSITORIES
PATH TO REPOSITORIES
REPOSITORIES CREATED

4. Installing Docker

DOCKER INSTALLED AND SERVICE STARTED

5. Python and Docker Package

Python3 and Docker Package Installed

6. Pulling A Docker Image

HTTPD AND CENTOS IMAGE DOWNLOADED

7. FILE FOR WEBSERVER

DIRECTORY CREATED AND FILE COPIED

8. Firewall Settings

9. Launching Container

CONTAINER LAUNCHED

10. Stopping Firewall

SERVER CONFIGURED AND WEBSITE HOSTED

RUNNING THE FILE :

RUNNING THE OUTPUTS :

Hope you learned and enjoyed a lot!!

I am a tech enthusiast, researcher and an integration seeker. I love to explore and learn about the right technology and right concepts from its foundation.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Legal Aspects of Apps Development

“Legal Aspects of Mobile Apps Development” by Ivar Cifré

Go: Mutex and Starvation

Making Presentation Easily By Python.

Python With PPTX

How to generate a constant request rate in k6 with the new scenarios API?

Laravel Basic | Laravel Model Events Tutorial

M1 Based Macs Have New Startup Modes, Here’s What You Need to Know

| Engineering News-Record

article

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
Rishabh Jain

Rishabh Jain

I am a tech enthusiast, researcher and an integration seeker. I love to explore and learn about the right technology and right concepts from its foundation.

More from Medium

Docker kernel uniqueness

Deploy to Kubernetes in 5 minutes with Docker Compose and Okteto Cloud

Installation, Virtual Server , Location block basics | Nginx Tutorial #1

How to: pgAdmin with Open ID Connect in Docker-Compose