@LinuxWorld
Write an Ansible PlayBook that does the following operations in the managed nodes:
๐น Configure Docker.
๐น Start and enable Docker services.
๐น Pull the httpd server image from the Docker Hub.
๐น Run the httpd container and expose it to the public.
๐น Copy the html code into the Docker container and start the web server.
Deploy Customized Apache Server on AWS through Ansible
๐น Provision EC2 instance through ansible.
๐น Retrieve the IP Address of instance using dynamic inventory concept.
๐น Configure the web server through ansible to listen to a port other than the default port 80 and change the DocumentRoot to a directory other than the default.
๐น Create a role for webserver to customize the Instance and deploy the webpage to root directory.