Successfully completed Ansible task!

Successfully completed Ansible task!

About Ansible:

No alt text provided for this image

Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration managementapplication deploymentintra-service orchestration, and many other IT needs. Designed for multi-tier deployments since day one, Ansible models your IT infrastructure by describing how all of your systems inter-relate, rather than just managing one system at a time.

About Docker:

No alt text provided for this image

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package. By doing so, thanks to the container, the developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that machine might have that could differ from the machine used for writing and testing the code.

In a way, Docker is a bit like a virtual machine. But unlike a virtual machine, rather than creating a whole virtual operating system, Docker allows applications to use the same Linux kernel as the system that they're running on and only requires applications be shipped with things not already running on the host computer. This gives a significant performance boost and reduces the size of the application.

I am currently learning "Automation using ansible" under the World record holder Mr. Vimal Daga and i am very great full to him for guiding us during this training.

About task:

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

Solution:

  1. My Controlled node is redhat 8 system with IP 192.168.43.50 and it's inventory has an IP of my managed node.
No alt text provided for this image

2. Manged node is also a redhat8 system. It doesn't have docker installed in it. My task is to install docker in managed node by using ansible through controlled node.

No alt text provided for this image

3. Before installing the docker , i need to copy a .repo file to my managed node in order to install docker-ce. I have also done the same using ansible.

No alt text provided for this image

The docker image that i am going to pull contains apache webserver and also php.

No alt text provided for this image

4. The next step is to write ansible playbook to complete the task on remote system.

No alt text provided for this image


5. After running ansible-playbook command, docker is installed, configured and running on remote system. Ansible also is launching the container and storing webpages in it. Ip of container node is 160. When i run it on browser, i get the website.

No alt text provided for this image
No alt text provided for this image

Thank you very much Mr. Vimal Daga sir.

Congratulations 🎉🎉🎉🎉 Congratulations 🎉🎉🎉🎉  Congratulations 🎉🎉🎉🎉🎉🎉🎉  Prasad Sir 🔥🔥🔥🔥🔥  Keep going 🚶🚶🏃🏃🏃🏃🏃🏃

Like
Reply

To view or add a comment, sign in

More articles by Prasad Joshi

  • Vision: AI Assistant for desktop

    Hello connections, I am glad to share that i have completed the mini-project for my college studies along with my…

    10 Comments
  • New era of technology : AWS Cloud!!!

    What is AWS Imagine, you are interested in launching your own business like launching a website, you would need…

  • BigData and Hadoop......

    The world we live in is data oriented. Everyday we deal with large quantity of data.

  • Start of a journey!!!

    Hello Everyone, This is Prasad Joshi, I am currently learning different technologies like (Flutter, Ansible, RedHat8…

  • Finally completed task3 of DEVOPS !

    About task 3 : 1. Create container image that’s has Jenkins installed using dockerfile Or You can use the Jenkins…

  • My progress in a week

    Hello friends, I have been training under Mr. Vimal Daga sir for flutter almost a week.

  • Finally completed task-4 of MLOPS training !

    Hello everyone, I have been training under world record holder Mr. Vimal Daga for MLOPS (Integration of DEVOPS with ML).

  • Getting started with mobile app-developement using flutter !

    My first day of learning flutter..

    4 Comments
  • Successfully completed Task-2 for MLOPS !

    I have been training under world record holder Mr. Vimal Daga for MLOPS.

  • MLOPS Task-3 completed !!!

    Hello everyone, I have been working on task-3 for Mlops under the guidance of world record holer Mr. Vimal Daga.

Others also viewed

Explore content categories