For doing this practical we require three operating systems, RHEL, Ubuntu and one for Controller Node. We need to have ansible installed and configured in our controller node.
Here, I am using the RedHat-8 OS, For doing this practical we need to know about ansible-facts.
Simply , Ansible facts are system properties that are collected by Ansible when it executes on a remote system. The facts contain useful details such as storage and network configuration about a target system. …
Ansible is a popular open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intra-service orchestration and provisioning. It is both light weight and simple to deploy, manage and use. The Ansible platform makes it easy for administrators and developers to automate many tasks, including applying updates to machines on the network to managing devices on the network.
Ansible has three offerings:
• Ansible: A free, open source automation product
• Ansible Tower: An enterprise offering which gives you a graphical interface and enables integration with other services and tools. …
Routing table is a data table and contains rules which determines whether to create a network packet to a particular destination. If the rule is there in the routing table that you can send packets, you can send. The routing table present in all devices. We can create routing table accordingly to whom we have to create and for whom we don’t have to create. After creating routing table, the OS can identify the rules. So, accordingly it will create.
Network Name is actually an IP and the first address of the Network which actually tells about the Network range…
Roles provide a framework for fully independent, or interdependent collections of variables, tasks, files, templates, and modules.
In Ansible, the role is the primary mechanism for breaking a playbook into multiple files. This simplifies writing complex playbooks, and it makes them easier to reuse. The breaking of playbook allows you to logically break the playbook into reusable components.
Each role is basically limited to a particular functionality or desired output, with all the necessary steps to provide that result either within that role itself or in other roles listed as dependencies.
Roles are not playbooks. Roles are small functionality which…
What is Ansible..?
Ansible is a software tool that provides simple but powerful automation for cross-platform computer support. It is primarily intended for IT professionals, who use it for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-service orchestration, and nearly anything a systems administrator does on a weekly or daily basis.
How Ansible Works..?
In Ansible, there are two categories of computers: the control node and managed nodes. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. …
Handlers are just like a normal task. Handlers will perform an action when listens for a notify event. If nothing notifies a handler, it will not run. Regardless of how many tasks notify a handler, it will run only once, after all of the tasks completed in a particular play.
Handlers in ansible to be triggered only when http configuration file changes and then handler will restart httpd service.
If you run the playbook again then it will shows that Your service is started so no need the restart again this become possible because of the handlers and notify keyworks…
ervices using Ansible Playbook
As the task suggests we are going to create a playbook that will configure Hadoop cluster and start it using following steps:
🔰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 docker container and expose it to the public
🔹 Copy the html code in /var/www/html directory
and start the web server
AWS is a cloud computing service which provides cloud services for us. We can leverage all of the services of in AWS for creating our own things or improve the already existing things.
EC2 is one of the services of AWS. EC2 stands for Elastic Compute Cloud. Elastic means we can increase or decrease the storage and other services in EC2.
Networking is the practice of transporting and exchanging data between nodes over a shared medium in an information system.
A routing table is a set of rules, often viewed in table format, that is used to determine where data packets traveling over an Internet Protocol (IP) network will be directed. All IP-enabled devices, including routers and switches, use routing tables.
A netmask is a 32-bit “mask” used to divide an IP address into subnets and specify the network’s available hosts. In a netmask, two bits are always automatically assigned. For example, in 255.255.225.0, “0” is the assigned network address. In…