SlideShare a Scribd company logo
1 of 19
Introduction
To
Ansible
We will be learning
• What is Ansible?
• Why do we need Ansible?
• Advantages of using Ansible
• What Ansible can do?
• Ansible Architecture
• Some Ansible terms, to help you understand
Ansible better.
What
is
Ansible?
Ansible is one of the
tools of DevOps
What
is
DevOps?
DevOps is a development
method that combines
software development (Dev)
with IT operations (Ops).
Ansible - Definition
It is a simple Configuration Management
(automation) tool that helps us in deploying
systems and applications easily.
Why do we need Ansible?
• Previously, system administrators managed servers by hand,
installing software, changing configurations, and
administering services on individual servers.
• As data centers grew, and hosted applications became more
complex, administrators realized they couldn’t scale their
manual systems management as fast as the applications they
were enabling.
• It hampered the velocity of the work of the developers since
the development team was agile and releasing software
frequently, but IT operations were spending more time
configuring the systems. That’s why server provisioning and
configuration management tools came to flourish.
Why Ansible?
• Free / open source application
• Agentless
• Python/ YAML based
• Ready to use modules
• Custom modules can be added
• Configuration roll-back in case of error
• Simple and human readable
• Self documenting
Ansible - Advantages
Simple Agentless
Powerful Efficient
What Ansible Can Do?
Provisioning
Configuration
Management
Application
Deployment
Security
Orchestration
How is it’s Architecture?
Ansible - Terminologies
1. Controller Machine: The machine where Ansible is installed.
2. Inventory: An initialization file that contains information about
the hosts/ servers you are managing.
3. Task: A block that defines a single procedure to be executed, e.g.
Install a package.
4. Playbook: The entry point for Ansible provisioning, where the
automation is defined through tasks using YAML format.
Ansible - Terminologies
5. Module: A module describes a system task, like dealing with
packages or creating files. Ansible has built-in modules, but you
can also create custom ones.
6. Role: A pre-defined way for organizing playbooks and other files
in order to facilitate sharing and reusing portions of a
provisioning.
7. Play: A provisioning executed from start to finish is called a play.
In simple words, execution of a playbook is called a play.
8. Facts: Global variables containing information about the system,
like network interfaces or operating system.
9. Handlers: Used to trigger service status changes, like restarting or
stopping a service.
[Cont.,]
Ansible - Installation
YUM (RHEL/ CentOS 7)
• wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-
7.noarch.rpm
• yum localinstall epel-release-latest-7.noarch.rpm
• yum --enablerepo=epel install Ansible
PIP
• pip install ansible
Understanding Ansible Playbook
The output of the Ansible-playbook is as below
Introduction to Ansible
Introduction to Ansible

More Related Content

Similar to Introduction to Ansible

Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to AnsibleKnoldus Inc.
 
Control-with-Ansible-Tower
Control-with-Ansible-TowerControl-with-Ansible-Tower
Control-with-Ansible-TowerMark Costin
 
Infrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerInfrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerTO THE NEW Pvt. Ltd.
 
Top 19 Ansible Interview Questions And Answers.pdf
Top 19 Ansible Interview Questions And Answers.pdfTop 19 Ansible Interview Questions And Answers.pdf
Top 19 Ansible Interview Questions And Answers.pdfhimanijain83
 
Top 3 Useful Tools for DevOps Automation -
Top 3 Useful Tools for DevOps Automation -Top 3 Useful Tools for DevOps Automation -
Top 3 Useful Tools for DevOps Automation -Urolime Technologies
 
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and co
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and coInstallation d'une VM _ BAREMETAL pour les SLAVE JENKINS and co
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and coThierry Gayet
 
Ansible intro
Ansible introAnsible intro
Ansible introRiyaz-ul
 
Ansible, MongoDB Ops Manager and AWS v1.1
Ansible, MongoDB Ops Manager and AWS v1.1Ansible, MongoDB Ops Manager and AWS v1.1
Ansible, MongoDB Ops Manager and AWS v1.1Michael Lynn
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdfNigussMehari4
 
Top 10 dev ops tools (1)
Top 10 dev ops tools (1)Top 10 dev ops tools (1)
Top 10 dev ops tools (1)yalini97
 
Ansible: Automation Tool
Ansible: Automation ToolAnsible: Automation Tool
Ansible: Automation ToolAakanksha Mane
 

Similar to Introduction to Ansible (20)

Ansible Playbook
Ansible PlaybookAnsible Playbook
Ansible Playbook
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
Ansible get started
Ansible get startedAnsible get started
Ansible get started
 
Control-with-Ansible-Tower
Control-with-Ansible-TowerControl-with-Ansible-Tower
Control-with-Ansible-Tower
 
Infrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerInfrastructure automation using awx ansible tower
Infrastructure automation using awx ansible tower
 
DevOps for database
DevOps for databaseDevOps for database
DevOps for database
 
Top 19 Ansible Interview Questions And Answers.pdf
Top 19 Ansible Interview Questions And Answers.pdfTop 19 Ansible Interview Questions And Answers.pdf
Top 19 Ansible Interview Questions And Answers.pdf
 
Ansible
AnsibleAnsible
Ansible
 
Ansible.pdf
Ansible.pdfAnsible.pdf
Ansible.pdf
 
Top 3 Useful Tools for DevOps Automation -
Top 3 Useful Tools for DevOps Automation -Top 3 Useful Tools for DevOps Automation -
Top 3 Useful Tools for DevOps Automation -
 
Managing Postgres with Ansible
Managing Postgres with AnsibleManaging Postgres with Ansible
Managing Postgres with Ansible
 
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and co
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and coInstallation d'une VM _ BAREMETAL pour les SLAVE JENKINS and co
Installation d'une VM _ BAREMETAL pour les SLAVE JENKINS and co
 
Ansible intro
Ansible introAnsible intro
Ansible intro
 
Ansible - Hands on Training
Ansible - Hands on TrainingAnsible - Hands on Training
Ansible - Hands on Training
 
Ansible, MongoDB Ops Manager and AWS v1.1
Ansible, MongoDB Ops Manager and AWS v1.1Ansible, MongoDB Ops Manager and AWS v1.1
Ansible, MongoDB Ops Manager and AWS v1.1
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdf
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
Top 10 dev ops tools (1)
Top 10 dev ops tools (1)Top 10 dev ops tools (1)
Top 10 dev ops tools (1)
 
Ansible
AnsibleAnsible
Ansible
 
Ansible: Automation Tool
Ansible: Automation ToolAnsible: Automation Tool
Ansible: Automation Tool
 

Recently uploaded

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 

Recently uploaded (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 

Introduction to Ansible

  • 1.
  • 3. We will be learning • What is Ansible? • Why do we need Ansible? • Advantages of using Ansible • What Ansible can do? • Ansible Architecture • Some Ansible terms, to help you understand Ansible better.
  • 5. Ansible is one of the tools of DevOps
  • 7. DevOps is a development method that combines software development (Dev) with IT operations (Ops).
  • 8. Ansible - Definition It is a simple Configuration Management (automation) tool that helps us in deploying systems and applications easily.
  • 9. Why do we need Ansible? • Previously, system administrators managed servers by hand, installing software, changing configurations, and administering services on individual servers. • As data centers grew, and hosted applications became more complex, administrators realized they couldn’t scale their manual systems management as fast as the applications they were enabling. • It hampered the velocity of the work of the developers since the development team was agile and releasing software frequently, but IT operations were spending more time configuring the systems. That’s why server provisioning and configuration management tools came to flourish.
  • 10. Why Ansible? • Free / open source application • Agentless • Python/ YAML based • Ready to use modules • Custom modules can be added • Configuration roll-back in case of error • Simple and human readable • Self documenting
  • 11. Ansible - Advantages Simple Agentless Powerful Efficient
  • 12. What Ansible Can Do? Provisioning Configuration Management Application Deployment Security Orchestration
  • 13. How is it’s Architecture?
  • 14. Ansible - Terminologies 1. Controller Machine: The machine where Ansible is installed. 2. Inventory: An initialization file that contains information about the hosts/ servers you are managing. 3. Task: A block that defines a single procedure to be executed, e.g. Install a package. 4. Playbook: The entry point for Ansible provisioning, where the automation is defined through tasks using YAML format.
  • 15. Ansible - Terminologies 5. Module: A module describes a system task, like dealing with packages or creating files. Ansible has built-in modules, but you can also create custom ones. 6. Role: A pre-defined way for organizing playbooks and other files in order to facilitate sharing and reusing portions of a provisioning. 7. Play: A provisioning executed from start to finish is called a play. In simple words, execution of a playbook is called a play. 8. Facts: Global variables containing information about the system, like network interfaces or operating system. 9. Handlers: Used to trigger service status changes, like restarting or stopping a service. [Cont.,]
  • 16. Ansible - Installation YUM (RHEL/ CentOS 7) • wget https://dl.fedoraproject.org/pub/epel/epel-release-latest- 7.noarch.rpm • yum localinstall epel-release-latest-7.noarch.rpm • yum --enablerepo=epel install Ansible PIP • pip install ansible
  • 17. Understanding Ansible Playbook The output of the Ansible-playbook is as below