Ansible Task1
Ansible
Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code.It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration. Ansible was written by Michael DeHaan and acquired by Red Hat in 2015. Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks.
Task Description
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 in /var/www/html directory and start the web server.
*Additional task for DevOps AL and Hybrid Multi Cloud trainees:
🔹 Configure a Kubernetes Cluster having master and slave nodes
🔹 Do the above implementation as Deployment in the Kubernetes Cluster
- Running a playbook
- Pull httpd image
- Create a docker container
- Image downloaded
- Container created
- httpd server running







Comments
Post a Comment