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.
  • 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….!!!

--

--

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