2. ABOUT ME
SWAPNIL JAIN
• 17 years of broad technical experience
• Red Hat Certified Architect (RHCA) Level VIII
• Founder & Director at Pisces Solutions P. Ltd
• Founder & CTO at Ambedded Taiwan, and creator of worlds first ARM MicroServer
Based Ceph Appliance “MARS200”, winner of “Best of Interop 2016” innovation award
• Red Hat Certified Instructor, delivering trainings in India, Singapore & Australia since
last 2 years
• Trained 400+ Candidates on different Red Hat Products & Tech. in 2016
3. AGENDA
• Introduction to Ansible
• Ansible Use Cases
• Ansible Architecture & Components
• About Ansible Modules Demo
• Writing Ansible Playbooks Demo
• About Ansible Tower, Features & Benefits over Ansible Core
• Ansible Tower Demo
• Q&A
4. DEPLOY APPS. MANAGE SYSTEMS. CRUSH COMPLEXITY.
WHAT IS ANSIBLE
• Ansible was originally written by Michael DeHaan, the
creator of the Cobbler provisioning application.
• Ansible is an open source configuration management and
orchestration utility. It can automate and standardize the
configuration of remote hosts and virtual machines. Its
orchestration functionality allows Ansible to coordinate the
launch and graceful shutdown of multitiered applications.
Because of this, Ansible can perform rolling updates of
multiple systems in a way that results in zero downtime.
• Ansible, Inc. (originally AnsibleWorks, Inc.) was the
company set up to commercially support and sponsor
Ansible. Later it was acquired by Red Hat in October 2015.
5. IT’S SIMPLE POWERFUL AGENTLESS
WHY ANSIBLE?
• Everyone hates repetitive work - Ansible Loves It. Ansible is a simple automation
language that can perfectly describe an IT application infrastructure. It’s easy-to-
learn, self-documenting, and doesn’t require a grad-level computer science degree
to read. Automation shouldn’t be more complex than the tasks it’s replacing.
• Complexity kills productivity - Every business is a digital business. Delivering your
applications faster helps you win. That requires a lot of manual effort and
complicated coordination. We need a tool to drive complexity out of our
environments and accelerate DevOps initiatives.
9. ARCHITECTURE
Control Node
… …. … … .. Managed Nodes … …. … … ..
SSH
winrm
( HOW )
( WHERE ) ( WHAT )
MODULES - PLUGINS - API
PLAYBOOK.YMLINVENTORY
ANSIBLE.CFG
10. ANSIBLE MODULES
• Modules are programs that Ansible uses to perform operations on managed hosts. They are ready-to-
use tools designed to perform specific operations. Modules can be executed from the ansible command
line or used in playbooks to execute tasks. When run, modules are copied to the managed host and
executed there.
• Three Type of Modules
1.Core modules are included with Ansible and are written and maintained by the Ansible development
team. Core modules are the most important modules and are used for common administration tasks.
2.Extras modules are currently included with Ansible but may be promoted to core or shipped
separately in the future. They are generally not maintained by the Ansible team but by the community.
3.Custom modules are modules developed by end users and not shipped by Ansible. If a module does
not already exist for a task, an administrator can write a new module to implement it.
12. PLAYBOOKS
• Playbooks are text files written in YAML format.
• Ansible playbooks also contain list of plays, where each play serves to define a set
of operations to perform on a specific set of managed hosts. These operations are
called tasks, and the managed hosts are referred to as hosts. Tasks are performed
by invoking Ansible modules and passing them the necessary arguments to
accomplish the desired operation.
14. EXTEND THE POWER OF ANSIBLE WITH ANSIBLE TOWER
ANSIBLE TOWER
• Ansible Tower is an enterprise framework for controlling, securing and managing
your Ansible automation with a UI and RESTful API.
• Tower builds on the underlying Ansible automation engine by adding control,
access, security, auditing, and delegation capabilities required in the enterprise.
15. FEATURES
ANSIBLE TOWER
• Dashboard
• Real-Time Job Status Updates
• Who Ran What Job When
• Integrated Notifications
• Schedule Ansible Jobs
• Manage And Track Your Entire Inventory
• Remote Command Execution
• System Tracking
• Comprehensive Rest Api And Tower Cli Tool