Create an Ansible playbook that will retrieve new container IP and update the inventory. So that further Configuration of the Webserver could be done inside that Container.

  • Here you can see this is the workspace that I have created.

code.yml

  • So here you can see in the inventory there is nothing, so let's run the playbook.
  • So here you can see the playbook is successfully deployed.
  • and nowhere you can see the inventory file is also updated.

* So now let's run playbook to configure apache webserver on the top of the docker container.

  • So here you can see the playbook is successfully deployed.
  • This is the Webpage….!!!

THATS ALL …!!!!

THANK YOU :)

--

--

--

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

Recommended from Medium

Found This Week #154

Alert Dialog Android Library

The beginner guide for understanding how Flexbox works

Do not Copy & Paste Code

How to fix Module couldn’t be connected error in Codeception

Intermediate Unity Tutorials

An approach to dynamic theme color generation in Angular

Android Example :Offline Database App with WorkManager (Part II)

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
Aaditya Tiwari

Aaditya Tiwari

More from Medium

Commit and push to multiple Git accounts on the same computer?

Multi-Node Docker Swarm on CentOS 8 Stream, Installed on  ESXi Host

Using Handlers with Import and Include statements

Launch a webserver (apache) and host a website on AWS(or any linux).