際際滷

際際滷Share a Scribd company logo
Introduction To
Ansible
01 What is Ansible?
02 Why Use Ansible?
03 Ansible History
Our Agenda
What is chef?
 Chef is used in infrastructure automation and
helps in reducing manual and repetitive tasks
for infrastructure management.
 Chef is a configuration management technology used
to automate the infrastructure provisioning. It is
developed on the basis of Ruby DSL language. It is
used to streamline the task of configuration and
managing the companys server. It has the capability
to get integrated with any of the cloud technology.
Features of Chef
Chef uses popular Ruby language to create a domain-specific language.
Chef does not make assumptions on the current status of a node. It uses its mechanisms
to get the current status of machine.
Chef is ideal for deploying and managing the cloud server, storage, and software.
Advantages of Chef
Lower barrier for entry
Excellent integration with cloud
Disadvantages of Chef
One of the huge disadvantages of Chef is the way cookbooks are controlled. It needs constant
babying so that people who are working should not mess up with others cookbooks.
Only Chef solo is available.
In the current situation, it is only a good fit for AWS cloud.
It is not very easy to learn if the person is not familiar with Ruby.
Documentation is still lacking.
Chef - Architecture
Terms used in Ansible
Terms Explanation
Ansible Server It is a machine where Ansible is installed and from which all tasks and playbooks will be
executed.
Modules The module is a command or set of similar commands which is executed on the client-side.
Task A task is a section which consists of a single procedure to be completed.
Role It is a way of organizing tasks and related files to be later called in a playbook.
Fact The information fetched from the client system from the global variables with the gather facts
operation.
Inventory A file containing the data regarding the Ansible client-server.
Play It is the execution of the playbook.
Handler The task is called only if a notifier is present.
Notifier The section attributed to a task which calls a handler if the output is changed.
Tag It is a name set to a task that can be used later on to issue just that specific task or group of
jobs.
Ansible Architecture
Ansible Installation in Linux
Prerequisites
PyYAML: a YAML parser and emitter for the python programming language.
Httplib2: a comprehensive HTTP client library.
parmiko: native python SSHv2 protocol library.
Distro: RHEL/ CentOS/ Debian/ Ubuntu Linux.
Jinja2: a modern and designer friendly templating language for python.
sshpass: a non-interactive ssh password authentication.
Ansible Installation in Linux
Install Ansible on RedHat/Centos systems
Step 1: Install the EPEL repo
[root@ansible-server ~]# sudo yum install epel-release
Step 2: Install the Ansible package.
[root@ansible-server ~]# sudo yum install -y ansible
Ansible ad-hoc Commands
Ad-hoc commands are one of the simplest ways of using Ansible. These are used when
you want to issue some commands on a server or bunch of servers. The ad-hoc commands
are not stored for future use, but it represents a fast way to interact with the desired
servers.
Syntax
ansible <hosts> [-m <module_name>] -a <"arguments"> -u <username> [--become]
Ansible Playbooks
Playbooks are the files where the Ansible code is written. Playbooks are written in
YAML format. YAML means "Yet Another Markup Language," so there is not much
syntax needed. Playbooks are one of the core features of Ansible and tell Ansible
what to execute, and it is used in complex scenarios. They offer increased flexibility.

More Related Content

Similar to UNIT-I Introduction to Ansible.pptx (20)

PDF
Automated Deployment and Configuration Engines. Ansible
Alberto Molina Coballes
PDF
ansible_rhel.pdf
ssuser6d347b
PPTX
SESSION Ansible how to deploy and push resources
Saravanan68713
PDF
Jenkins and ansible reference
laonap166
PDF
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
Jumping Bean
PDF
Ansible intro
Marcelo Quintiliano da Silva
PDF
Ansible 101 - Presentation at Ansible STL Meetup
Jeff Geerling
PPTX
Ansible: What, Why & How
Alfonso Cabrera
PDF
Configuration Management in Ansible
Bangladesh Network Operators Group
PDF
Ansible
SanthoshKumar2759
PDF
Ansible & Salt - Vincent Boon
MyNOG
PDF
Ansible
Rahul Bajaj
PPTX
Ansible day01
Gourav Varma
PDF
Introduction to Ansible in RHEL- RHCE.pdf
RHCSA Guru
PDF
Ansible a tool for dev ops
Ren辿 Ribaud
PPTX
Ansible
Afroz Hussain
PPTX
Introduction to Ansible
CoreStack
PDF
Top 50 Ansible Interview Questions And Answers in 2023.pdf
Datacademy.ai
PDF
Ansible - Swiss Army Knife Orchestration
bcoca
PPTX
Introduction to ansible
Omid Vahdaty
Automated Deployment and Configuration Engines. Ansible
Alberto Molina Coballes
ansible_rhel.pdf
ssuser6d347b
SESSION Ansible how to deploy and push resources
Saravanan68713
Jenkins and ansible reference
laonap166
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
Jumping Bean
Ansible 101 - Presentation at Ansible STL Meetup
Jeff Geerling
Ansible: What, Why & How
Alfonso Cabrera
Configuration Management in Ansible
Bangladesh Network Operators Group
Ansible & Salt - Vincent Boon
MyNOG
Ansible
Rahul Bajaj
Ansible day01
Gourav Varma
Introduction to Ansible in RHEL- RHCE.pdf
RHCSA Guru
Ansible a tool for dev ops
Ren辿 Ribaud
Ansible
Afroz Hussain
Introduction to Ansible
CoreStack
Top 50 Ansible Interview Questions And Answers in 2023.pdf
Datacademy.ai
Ansible - Swiss Army Knife Orchestration
bcoca
Introduction to ansible
Omid Vahdaty

More from Pandiya Rajan (20)

PPTX
CICD.pptx
Pandiya Rajan
PPTX
HTML-Advance.pptx
Pandiya Rajan
PPTX
css1.pptx
Pandiya Rajan
PPTX
HTML-Basic.pptx
Pandiya Rajan
PPTX
UNIT-I Introduction to CICD.pptx
Pandiya Rajan
PPTX
UNIT-I Introduction to CICD.pptx
Pandiya Rajan
PPT
page_fault pbm.ppt
Pandiya Rajan
PPT
process syn.ppt
Pandiya Rajan
PPTX
Selenium.pptx
Pandiya Rajan
PPTX
selinuxbasicusage.pptx
Pandiya Rajan
PPTX
lvm.pptx
Pandiya Rajan
PPT
SSH.ppt
Pandiya Rajan
PPTX
environmentalpollution-.pptx
Pandiya Rajan
PPTX
DM.pptx
Pandiya Rajan
PPTX
thermal pollution.pptx
Pandiya Rajan
PPTX
marinepollution.pptx
Pandiya Rajan
PPT
logical volume manager.ppt
Pandiya Rajan
PPTX
Presentation1.pptx
Pandiya Rajan
DOCX
c-c++-java-python programs.docx
Pandiya Rajan
PPTX
CMMI.pptx
Pandiya Rajan
CICD.pptx
Pandiya Rajan
HTML-Advance.pptx
Pandiya Rajan
css1.pptx
Pandiya Rajan
HTML-Basic.pptx
Pandiya Rajan
UNIT-I Introduction to CICD.pptx
Pandiya Rajan
UNIT-I Introduction to CICD.pptx
Pandiya Rajan
page_fault pbm.ppt
Pandiya Rajan
process syn.ppt
Pandiya Rajan
Selenium.pptx
Pandiya Rajan
selinuxbasicusage.pptx
Pandiya Rajan
lvm.pptx
Pandiya Rajan
SSH.ppt
Pandiya Rajan
environmentalpollution-.pptx
Pandiya Rajan
DM.pptx
Pandiya Rajan
thermal pollution.pptx
Pandiya Rajan
marinepollution.pptx
Pandiya Rajan
logical volume manager.ppt
Pandiya Rajan
Presentation1.pptx
Pandiya Rajan
c-c++-java-python programs.docx
Pandiya Rajan
CMMI.pptx
Pandiya Rajan
Ad

Recently uploaded (20)

PPTX
template.pptxr4t5y67yrttttttttttttttttttttttttttttttttttt
SithamparanaathanPir
PPTX
Explore USAs Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
PPTX
Alan Turing - life and importance for all of us now
Pedro Concejero
PDF
13th International Conference on Artificial Intelligence, Soft Computing (AIS...
ijait
PPTX
Computer network Computer network Computer network Computer network
Shrikant317689
PDF
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
DOCX
Engineering Geology Field Report to Malekhu .docx
justprashant567
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
PDF
lesson4-occupationalsafetyandhealthohsstandards-240812020130-1a7246d0.pdf
arvingallosa3
PDF
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
PDF
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
PPTX
Artificial Intelligence jejeiejj3iriejrjifirirjdjeie
VikingsGaming2
PPT
FINAL plumbing code for board exam passer
MattKristopherDiaz
PDF
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
template.pptxr4t5y67yrttttttttttttttttttttttttttttttttttt
SithamparanaathanPir
Explore USAs Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
Alan Turing - life and importance for all of us now
Pedro Concejero
13th International Conference on Artificial Intelligence, Soft Computing (AIS...
ijait
Computer network Computer network Computer network Computer network
Shrikant317689
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
Engineering Geology Field Report to Malekhu .docx
justprashant567
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
lesson4-occupationalsafetyandhealthohsstandards-240812020130-1a7246d0.pdf
arvingallosa3
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
Artificial Intelligence jejeiejj3iriejrjifirirjdjeie
VikingsGaming2
FINAL plumbing code for board exam passer
MattKristopherDiaz
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
Ad

UNIT-I Introduction to Ansible.pptx

  • 2. 01 What is Ansible? 02 Why Use Ansible? 03 Ansible History Our Agenda
  • 3. What is chef? Chef is used in infrastructure automation and helps in reducing manual and repetitive tasks for infrastructure management. Chef is a configuration management technology used to automate the infrastructure provisioning. It is developed on the basis of Ruby DSL language. It is used to streamline the task of configuration and managing the companys server. It has the capability to get integrated with any of the cloud technology.
  • 4. Features of Chef Chef uses popular Ruby language to create a domain-specific language. Chef does not make assumptions on the current status of a node. It uses its mechanisms to get the current status of machine. Chef is ideal for deploying and managing the cloud server, storage, and software.
  • 5. Advantages of Chef Lower barrier for entry Excellent integration with cloud Disadvantages of Chef One of the huge disadvantages of Chef is the way cookbooks are controlled. It needs constant babying so that people who are working should not mess up with others cookbooks. Only Chef solo is available. In the current situation, it is only a good fit for AWS cloud. It is not very easy to learn if the person is not familiar with Ruby. Documentation is still lacking.
  • 7. Terms used in Ansible Terms Explanation Ansible Server It is a machine where Ansible is installed and from which all tasks and playbooks will be executed. Modules The module is a command or set of similar commands which is executed on the client-side. Task A task is a section which consists of a single procedure to be completed. Role It is a way of organizing tasks and related files to be later called in a playbook. Fact The information fetched from the client system from the global variables with the gather facts operation. Inventory A file containing the data regarding the Ansible client-server. Play It is the execution of the playbook. Handler The task is called only if a notifier is present. Notifier The section attributed to a task which calls a handler if the output is changed. Tag It is a name set to a task that can be used later on to issue just that specific task or group of jobs.
  • 9. Ansible Installation in Linux Prerequisites PyYAML: a YAML parser and emitter for the python programming language. Httplib2: a comprehensive HTTP client library. parmiko: native python SSHv2 protocol library. Distro: RHEL/ CentOS/ Debian/ Ubuntu Linux. Jinja2: a modern and designer friendly templating language for python. sshpass: a non-interactive ssh password authentication.
  • 10. Ansible Installation in Linux Install Ansible on RedHat/Centos systems Step 1: Install the EPEL repo [root@ansible-server ~]# sudo yum install epel-release Step 2: Install the Ansible package. [root@ansible-server ~]# sudo yum install -y ansible
  • 11. Ansible ad-hoc Commands Ad-hoc commands are one of the simplest ways of using Ansible. These are used when you want to issue some commands on a server or bunch of servers. The ad-hoc commands are not stored for future use, but it represents a fast way to interact with the desired servers. Syntax ansible <hosts> [-m <module_name>] -a <"arguments"> -u <username> [--become]
  • 12. Ansible Playbooks Playbooks are the files where the Ansible code is written. Playbooks are written in YAML format. YAML means "Yet Another Markup Language," so there is not much syntax needed. Playbooks are one of the core features of Ansible and tell Ansible what to execute, and it is used in complex scenarios. They offer increased flexibility.