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 docker container and expose it to the public ๐น Copy the html code in /var/www/html directory and start the web server
Further creating an ansible playbook that will retrieve newContainer IP and update the inventory. So that further Configuration of Webserver could be done inside that Container.