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 :)