Ansible Task 1
PRAFULL WAIDANDE
Ambassador & Technical Volunteer at IIEC Rise || Google Cloud Platform at LinuxWorld Informatics Pvt Ltd
Write an Ansible PlayBook that does the following operations in the managed nodes:
?? Configure Docker & Install it.
?? Start and enable Docker services.
?? Pull the httpd server image from the Docker Hub.
?? Copy the html code to the directory in the container .
?? Run the httpd container and expose it to the public .
Lets do this task thought ansible.
What is Ansible ??
Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intraservice orchestration, and provisioning. Automation is crucial these days, with IT environments that are too complex and often need to scale too quickly for system administrators and developers to keep up if they had to do everything manually. Automation simplifies complex tasks, not just making developers’ jobs more manageable but allowing them to focus attention on other tasks that add value to an organization. In other words, it frees up time and increases efficiency. And Ansible, as noted above, is rapidly rising to the top in the world of automation tools. Let’s look at some of the reasons for Ansible’s popularity.
Ansible Playbooks ??
Ansible playbooks are like instruction manuals for tasks. They are simple files written in YAML, which stands for YAML Ain’t Markup Language, a human-readable data serialization language. Playbooks are really at the heart of what makes Ansible so popular is because they describe the tasks to be done quickly and without the need for the user to know or remember any particular syntax. Not only can they declare configurations, but they can orchestrate the steps of any manually ordered task, and can execute tasks at the same time or at different times.
here are Screen Shot
step 1:
step 2:
step 3:
step 4:
step 5:
Thank you so much for reading