Ansible PlayBook to install docker -community edition and launch a docker container with httpd configured and service started .

In Ansible Playbook :

playbook

STEP 1

configuring yum

STEP 2

Installing Docker

STEP 3

Installing Python

STEP 4

Installing docker-py

STEP 5

Starting docker services

STEP 6

Pull httpd image

STEP 7

Making a directory

STEP 8

Inserting the web page .

STEP 9

Creating Docker Container .

After Running the Playbook :

ansible-playbook docker1.yml

After running the playbook

Thankyou

For any queries and suggestions dm me .

Tech_lover

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

Recommended from Medium

How to run docker and docker-compose commands inside your Jenkins Container

Projectile dodging enemies

5 Git commands I use most often

Proposal Creators Incentive Draft — Give us Suggestions and win NAX!

📢All-in-one: check the links to understand how DISCIPLINA works

#100DaysofCode — Day[7] (8)

UpGrade Your Knowledge!

Common Conveyor Belt Problems

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
Prasantmahato

Prasantmahato

Tech_lover

More from Medium

Keycloak tutorial series — Part 3 Keycloak User Federation

VULNHUB— MISSION-PUMPKIN V1.0: PUMPKINGARDEN WALKTHROUGH

Grafana Loki: Installation and Log Panel

HAProxy Setup