Course Report
Course Report
on
By
(ID NO : O170435)
Supervisor (s):
1
Approval Sheet
This thesis/dissertation/report entitled (Title) by (Author Name) is approve
for the degree of (Degree details).
Examiner(s)
Supervisor(s)
Chairman
Date :
Place :
2
RAJIV GANDHI UNIVERSITY OF KNOWLEDGE
TECHNOLOGIES
(RGUKT) Ongole,
DEPARTMENT OF COMPUTER SCIENCE AND
ENGINEERING
CERTIFICATE
3
Declaration
(Signature)
(Roll No.)
Date:
4
Acknowledgement
5
CERTIFICATE OF COMPLETION
6
ABSTRACT
7
CONTENTS
Contents
ACKNOWLEDGEMENT 4
CERTIFICATE OF COMPLETION. 5
ABSTRACT 6
CONTENTS
I.INTRODUCTION 8
II.FUNCTIONS OF ANSIBLE 11
III.PROJECT REPORT 17
VI.REFERENCES 32
8
INTRODUCTION
Ansible is an open-source automation framework (or platform) used for
Understanding
It is simple, powerful and agentless. The biggest differentiator between
Ansible and other too lies in the architecture; it works on the “Push”
9
Below is the Architecture diagram of Ansible:
Architecture components :
Here, we will discuss the architecture part and will discuss its
components. The Ansible automation engine consists of various
components as described below as follows.
Inventories –
Ansible inventories are lists of hosts with their IP addresses,
servers, and databases which have to be managed via an SSH
for UNIX, Linux, or Networking devices, and WinRM for
Windows
APIs –
Application Programming Interface or APIs are used as a mode
of transport for public and private cloud services.
Modules –
Modules are executed directly on remote hosts through
playbooks and can control resources like services, packages,
files, or execute system commands. They act on system files,
install packages and make API calls to the service network.
There are over 450 Ansible that provide modules that automate
1
0
various jobs in an environment. For example, Cloud Modules
like Cloud Formation create or delete an AWS cloud formation
stack.
Plugins –
Plugins are pieces of code that augment Ansible’s core
functionality and allow executing Ansible tasks as a job build
step. Ansible ships with several handy plugins and one can
also write it on their own. For example, Action plugins act as
front-ends to modules and can execute tasks on the controller
before calling the modules themselves.
Networking –
Ansible uses a simple, powerful, and agent-less automation
framework to automate network tasks. It uses a separate data
model and spans different network hardware.
Hosts –
Hosts refer to the nodes or systems (Linux, Windows, etc)
which are automated by Ansible.
Playbooks –
Playbooks are simple files written in YAML format which
describe the tasks to be executed by Ansible. Playbooks can
declare configurations, orchestrate the steps of any manual
ordered process and can also launch various tasks.
CMDB –
It stands for Configuration Management Database (CMDB). In
this, it holds data to a collection of IT assets, and it is a
repository or data warehouse where we will store this kind of
data, and It also defines the relationships between such
assets.
Cloud –
It is a network of remote servers hosted on the internet to store,
manage and process data instead of storing it on a local server.
Functions of ANSIBLE
1
1
Ansible automation engine encompasses an Inventory, API, modules,
and plugins.
consists of multiple tasks that can serve one or more hosts present in the
These modules are designed in such a way that it first checks whether the
a Tomcat server, then the task will only get executed if it is not running
12
These playbook tasks can also be reused; these reusable units are called
deployed in multiple servers, i.e. dev, UAT and prod. In order to deploy the
war file, first, you need to set up the webserver and database server in all the
machines. Also, the same SQL scripts need to run in all the databases to set
up the database. Now it doesn’t make sense to perform this redundant task
manually.
13
With this, all you need to do is to write simple tasks in the playbook, and
Required Skills
Unlike puppet & chef (automation tool like ansible), which requires
the knowledge of ruby, with ansible, you don’t need to learn any
Also, most of the common tasks are available in the form of a playbook in
the Ansible Galaxy Community, which you can extend as per your
requirement.
Using this, you can cut down certain processes from hours to minutes.
14
Ansible automates the management of remote systems and controls
their desired state. A basic Ansible environment has three main
components:
Control node
Managed node
A remote system, or host, that Ansible controls.
Inventory
A list of managed nodes that are logically organized. You create an
inventory on the control node to describe host deployments to Ansible.
16
PROJECT REPORT
17
18
19
20
21
22
23
24
SAMPLE PROJECT IMAGES
25
26
27
28
29
30
CONCLUSION & FUTURE SCOPE
CONCLUSION
FUTURE SCOPE
The faster you try something new, even if you fail, the
faster you can move onto the next thing and try that. It’s all
about open experimentation, constant communication, and
a tolerance for failure.
24
REFERENCES
1.GOOGLE
- https://www.ansible.com/
2.INSTAGRAM
-@redhatinc
- https://www.ansible.com/use-cases
25