Docker
Apache
Httpd
Web Server
Ansible
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.
Dec 17, 2020
Press enter or click to view image in full size![]()
- Here you can see this is the workspace that I have created.
code.yml
Press enter or click to view image in full size![]()
Press enter or click to view image in full size![]()
Press enter or click to view image in full size![]()
- So here you can see in the inventory there is nothing, so let's run the playbook.
Press enter or click to view image in full size![]()
Press enter or click to view image in full size![]()
- So here you can see the playbook is successfully deployed.
Press enter or click to view image in full size![]()
- and nowhere you can see the inventory file is also updated.
Press enter or click to view image in full size![]()
* So now let's run playbook to configure apache webserver on the top of the docker container.
Press enter or click to view image in full size![]()
- So here you can see the playbook is successfully deployed.
Press enter or click to view image in full size![]()
- This is the Webpage….!!!
THATS ALL …!!!!
THANK YOU :)