Category: Docker, yaml, ansible

This post will briefly explain the how to use Ansible to automate the deployment of docker and kick-off a webserver. Ansible playbook for to perform the following steps 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 in /var/www/html directory and start the web server

Managed nodes are configured here: /etc/.txt (Example: /etc/hosts.txt)

To check the connectivity with managed nodes: ansible all -m ping

Related Articles