SlideShare a Scribd company logo
Ansible Hyderabad Meetup
August 22nd, 2015
Maruti Gollapudi
 Understand Why and What of Ansible
 Get started with Some Samples
Lets Start feeling some pain ->
DevOps Infrastructure As Code
Continuous Delivery
 An App server, DB and few more
 Developer codes, tests and done!!
 Request Ops team to prepare Infrastructure
and deploy
 Pains:
◦ Takes time!!
◦ Prepare some kind of manual for Ops team –
Any mistake will introduce additional pain.
◦ Version update - almost same pain
◦ Scheduled deployments – Monthly?? Or even
less frequent.
A simple pain !!!
Develop Test
Deploy Maintain
X
 App server cluster, DB Cluster, Compute cluster
etc
 Scale up and down
 Create a Apache Mesos cluster
 Add a node to Mongo DB replica set
 Provision 1000 nodes on Open stack cloud. Install
Hadoop on 100 nodes, Jboss on 10 noodes,
MySQL on 5 nodes, Mongo DB on 20 nodes 
 Pains:
◦ Aren’t you feeling already!!
More pain !!!
Big Data , IoT …
 Can’t wait one month for a new feature – need
more deployments
 Test everything – including infrastructure, so
code everything.
 IoT – communicate with devices. Deploy docker
containers on them??
Some More pain !!!
The Pain Relief!! ->
Automate everything an Ops guy can do!
And do it without even SSHing
with
No need to log in to the servers
No need to manually install packages
No need to manually edit configuration files
No need to manually restart daemons
No need to use admin console to create VMs
Launch VMs
Launch Containers
Provision/Configure
Deploy Software
Start/Stop services
Launch a Mesos cluster
Add/Delete nodes from Cluster
 Powered by SSH. Can use 0mq also.
 Agent less 
 Vibrant community with lot of re usable
code
App Deployment + Configuration Management + Orchestration
Any Device that can
be SSHed!!
 https://speakerd.s3.amazonaws.com/presentations/0aa612b00beb0130615912313d09323e/ansible.pdf
 Inventory {1000 nodes Hadoop cluster.. One inventory file!!}
 Adhoc commands {lets see Ansible in action now!!}
$ ansible all -m ping
$ ansible all -m setup
$ ansible web-group -m ping
$ ansible all -a "/sbin/reboot" -f 10
 Modules {don’t know python, do it in bash!!}
◦ http://docs.ansible.com/ansible/modules.html
apt, apt_repository, assemble, async_status, authorized_key,
command, copy, cron, debug, easy_install, facter, fail,
fetch, file, fireball, get_url, git, group, ini_file,
lineinfile, mail, mount, mysql_db, mysql_user, nagios,
ohai, pause, ping, pip, postgresql_db, postgresql_user,
raw, seboolean, selinux, service, setup, shell, slurp,
subversion, supervisorctl, template, user, virt, yum
$ ansible all -m user -a "name=joe password=wat“
$ ansible all -m yum -a "name=nginx state=installed“
$ ansible all -m service -a "name=nginx state=started"
 Playbook {its not as big as a
book though and lets see
one!!}
 Playbooks are Ansible’s
configuration, deployment, and
orchestration language
 Playbooks are expressed in YAML
format
 The goal of a play is to map a
group of hosts to some well
defined roles, represented by
things ansible calls tasks
---
- hosts: webservers
user: root
vars:
http_port: 80
max_clients: 200
tasks:
- name: ensure apache is at the latest version
action: yum pkg=httpd state=latest
- name: write the apache config file
action: template src=httpd.j2
dest=/etc/httpd.conf
notify:
- restart apache
- name: ensure apache is running
action: service name=httpd state=started
handlers:
- name: restart apache
action: service name=httpd state=restarted
 Roles {re-usable components}
 Galaxy {may be you cant count them but can use them!!}
◦ https://galaxy.ansible.com/
 Ansible Tower {Need Money!!!}
 templets
 Callbacks (Python)
 Action plugins (Python)
 Inventory sources (any language)
 Twitter
◦ https://www.youtube.com/watch?v=fwGrKXzocg4
 Hootsuite
◦ www.ansible.com/blog/ansible-app-deployment-hootsuite
◦ http://code.hootsuite.com/automating-our-scala-deploys-with-ansible-case-study/
 NASA
◦ http://www.ansible.com/blog/nasa-automation
 Raun
◦ http://www.ansible.com/hs-fs/hub/330046/file-2130647754-
pdf/Whitepapers__Case_Studies/ruan_case_study_(1).pdf
 Lifesum
◦ http://www.ansible.com/hs-fs/hub/330046/file-2126676653-
pdf/Whitepapers__Case_Studies/lifesum_case_study.pdf
 Narrative Clip
◦ http://cdn2.hubspot.net/hub/330046/file-508495323-
pdf/pdf_content/Narrative_Case_Study_AWS.pdf
 https://docs.ansible.com/
 https://www.openstack.org/summit/openstack-summit-atlanta-
2014/session-videos/presentation/taming-openstack-with-ansible
 https://www.openstack.org/news/view/61/ansible-announces-the-
simple-openstack-initiative
 https://www.openstack.org/summit/vancouver-2015/summit-
videos/presentation/deploying-openstack-with-ansible
Thank You
Maruti Gollapudi
Principal Architect @IGATE
@gmaruti
github.com/gmaruti
https://www.linkedin.com/in/marutigollapudi
Blogofmaruti.blogspot.com

More Related Content

ODP
Ansible basics workshop
PDF
Introducing Ansible
PDF
Hands On Introduction To Ansible Configuration Management With Ansible Comple...
PDF
Network Automation with Ansible
PPTX
Introduction to Ansible
PDF
A quick intro to Ansible
PDF
Ansible and AWS
PPTX
Windows Azure Web Sites - Things they don’t teach kids in school - BuildStuffLT
Ansible basics workshop
Introducing Ansible
Hands On Introduction To Ansible Configuration Management With Ansible Comple...
Network Automation with Ansible
Introduction to Ansible
A quick intro to Ansible
Ansible and AWS
Windows Azure Web Sites - Things they don’t teach kids in school - BuildStuffLT

What's hot (19)

PDF
#OktoCampus - Workshop : An introduction to Ansible
PPTX
Node.js in a heterogeneous system
PDF
Getting Started with Ansible
PPTX
Introduction to ansible
PPT
Ansible presentation
PPT
Setting Up Amazon EC2 server
PPTX
Cyansible
PDF
Ansible Automation to Rule Them All
PPTX
Ansible presentation
PDF
Jenkins and ansible reference
PDF
KOWAZA for mackerel
PDF
Ansible best practices
PPT
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
PPT
Tips for a Faster Website
PDF
IT Automation with Ansible
PDF
Ansible
PDF
Ansible + WordPress
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
#OktoCampus - Workshop : An introduction to Ansible
Node.js in a heterogeneous system
Getting Started with Ansible
Introduction to ansible
Ansible presentation
Setting Up Amazon EC2 server
Cyansible
Ansible Automation to Rule Them All
Ansible presentation
Jenkins and ansible reference
KOWAZA for mackerel
Ansible best practices
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Tips for a Faster Website
IT Automation with Ansible
Ansible
Ansible + WordPress
Ansible is the simplest way to automate. MoldCamp, 2015
Ad

Viewers also liked (20)

PDF
Ansible v2 and Beyond (Ansible Hawai'i Meetup)
PPTX
Ansible Best Practices - July 30
PDF
Tech Talk: DevOps at LeanIX @ Startup Camp Berlin
PDF
Infrastructure as Data with Ansible for easier Continuous Delivery
PPT
Risk Based Security and Self Protection Powerpoint
PDF
Infrastructure as Data with Ansible
PDF
Ansible & Cumulus Networks - Simplify Network Automation
ODP
Ic maven jenkins_sonar
PDF
Master Continuous Delivery with CloudBees Jenkins Platform
PDF
Jenkins Docker
PDF
Dockercon2015 bamboo
PDF
Game of Codes: the Battle for CI
PPTX
GitFlow, SourceTree and GitLab
PDF
Using Docker for Testing
PDF
Bamboo - an introduction
PPTX
Getting started with Jenkins
PDF
困境與轉型:一個小型開發團隊的 DevOps 學習之旅
PPTX
Continuous Delivery with Jenkins and Wildfly (2014)
PDF
Gitlab Training with GIT and SourceTree
PDF
Git and GitHub for Documentation
Ansible v2 and Beyond (Ansible Hawai'i Meetup)
Ansible Best Practices - July 30
Tech Talk: DevOps at LeanIX @ Startup Camp Berlin
Infrastructure as Data with Ansible for easier Continuous Delivery
Risk Based Security and Self Protection Powerpoint
Infrastructure as Data with Ansible
Ansible & Cumulus Networks - Simplify Network Automation
Ic maven jenkins_sonar
Master Continuous Delivery with CloudBees Jenkins Platform
Jenkins Docker
Dockercon2015 bamboo
Game of Codes: the Battle for CI
GitFlow, SourceTree and GitLab
Using Docker for Testing
Bamboo - an introduction
Getting started with Jenkins
困境與轉型:一個小型開發團隊的 DevOps 學習之旅
Continuous Delivery with Jenkins and Wildfly (2014)
Gitlab Training with GIT and SourceTree
Git and GitHub for Documentation
Ad

Similar to Ansible - Why and what (20)

PPTX
Automating with ansible (Part A)
PPTX
Ansible: What, Why & How
ODP
Introduction to Ansible
PDF
Automating with ansible (part a)
PPTX
Ansible as configuration management tool for devops
PPTX
Hands on ansible
ODP
Infrastructure as a Code
PDF
Ansible - Hands on Training
PPTX
Ansible
PDF
Ansible Tutorial.pdf
PDF
ansible_rhel.pdf
PPTX
Go Faster with Ansible (AWS meetup)
PPTX
Introduction to Ansible - (dev ops for people who hate devops)
PDF
Writing your First Ansible Playbook
PDF
Devops with Python by Yaniv Cohen DevopShift
PPTX
Learn you some Ansible for great good!
PPTX
Go Faster with Ansible (PHP meetup)
PDF
Automated Deployment and Configuration Engines. Ansible
PDF
Managing Postgres with Ansible
PPTX
SESSION Ansible how to deploy and push resources
Automating with ansible (Part A)
Ansible: What, Why & How
Introduction to Ansible
Automating with ansible (part a)
Ansible as configuration management tool for devops
Hands on ansible
Infrastructure as a Code
Ansible - Hands on Training
Ansible
Ansible Tutorial.pdf
ansible_rhel.pdf
Go Faster with Ansible (AWS meetup)
Introduction to Ansible - (dev ops for people who hate devops)
Writing your First Ansible Playbook
Devops with Python by Yaniv Cohen DevopShift
Learn you some Ansible for great good!
Go Faster with Ansible (PHP meetup)
Automated Deployment and Configuration Engines. Ansible
Managing Postgres with Ansible
SESSION Ansible how to deploy and push resources

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
history of c programming in notes for students .pptx
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
top salesforce developer skills in 2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Transform Your Business with a Software ERP System
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Nekopoi APK 2025 free lastest update
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
medical staffing services at VALiNTRY
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
history of c programming in notes for students .pptx
Online Work Permit System for Fast Permit Processing
Understanding Forklifts - TECH EHS Solution
ISO 45001 Occupational Health and Safety Management System
L1 - Introduction to python Backend.pptx
Introduction to Artificial Intelligence
Design an Analysis of Algorithms I-SECS-1021-03
top salesforce developer skills in 2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Upgrade and Innovation Strategies for SAP ERP Customers
ManageIQ - Sprint 268 Review - Slide Deck
Transform Your Business with a Software ERP System
CHAPTER 2 - PM Management and IT Context
Navsoft: AI-Powered Business Solutions & Custom Software Development
How Creative Agencies Leverage Project Management Software.pdf
ai tools demonstartion for schools and inter college
Nekopoi APK 2025 free lastest update
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
medical staffing services at VALiNTRY

Ansible - Why and what

  • 1. Ansible Hyderabad Meetup August 22nd, 2015 Maruti Gollapudi
  • 2.  Understand Why and What of Ansible  Get started with Some Samples Lets Start feeling some pain -> DevOps Infrastructure As Code Continuous Delivery
  • 3.  An App server, DB and few more  Developer codes, tests and done!!  Request Ops team to prepare Infrastructure and deploy  Pains: ◦ Takes time!! ◦ Prepare some kind of manual for Ops team – Any mistake will introduce additional pain. ◦ Version update - almost same pain ◦ Scheduled deployments – Monthly?? Or even less frequent. A simple pain !!! Develop Test Deploy Maintain X
  • 4.  App server cluster, DB Cluster, Compute cluster etc  Scale up and down  Create a Apache Mesos cluster  Add a node to Mongo DB replica set  Provision 1000 nodes on Open stack cloud. Install Hadoop on 100 nodes, Jboss on 10 noodes, MySQL on 5 nodes, Mongo DB on 20 nodes   Pains: ◦ Aren’t you feeling already!! More pain !!! Big Data , IoT …
  • 5.  Can’t wait one month for a new feature – need more deployments  Test everything – including infrastructure, so code everything.  IoT – communicate with devices. Deploy docker containers on them?? Some More pain !!! The Pain Relief!! ->
  • 6. Automate everything an Ops guy can do! And do it without even SSHing with No need to log in to the servers No need to manually install packages No need to manually edit configuration files No need to manually restart daemons No need to use admin console to create VMs Launch VMs Launch Containers Provision/Configure Deploy Software Start/Stop services Launch a Mesos cluster Add/Delete nodes from Cluster
  • 7.  Powered by SSH. Can use 0mq also.  Agent less   Vibrant community with lot of re usable code App Deployment + Configuration Management + Orchestration Any Device that can be SSHed!!
  • 9.  Inventory {1000 nodes Hadoop cluster.. One inventory file!!}
  • 10.  Adhoc commands {lets see Ansible in action now!!} $ ansible all -m ping $ ansible all -m setup $ ansible web-group -m ping $ ansible all -a "/sbin/reboot" -f 10
  • 11.  Modules {don’t know python, do it in bash!!} ◦ http://docs.ansible.com/ansible/modules.html apt, apt_repository, assemble, async_status, authorized_key, command, copy, cron, debug, easy_install, facter, fail, fetch, file, fireball, get_url, git, group, ini_file, lineinfile, mail, mount, mysql_db, mysql_user, nagios, ohai, pause, ping, pip, postgresql_db, postgresql_user, raw, seboolean, selinux, service, setup, shell, slurp, subversion, supervisorctl, template, user, virt, yum $ ansible all -m user -a "name=joe password=wat“ $ ansible all -m yum -a "name=nginx state=installed“ $ ansible all -m service -a "name=nginx state=started"
  • 12.  Playbook {its not as big as a book though and lets see one!!}  Playbooks are Ansible’s configuration, deployment, and orchestration language  Playbooks are expressed in YAML format  The goal of a play is to map a group of hosts to some well defined roles, represented by things ansible calls tasks --- - hosts: webservers user: root vars: http_port: 80 max_clients: 200 tasks: - name: ensure apache is at the latest version action: yum pkg=httpd state=latest - name: write the apache config file action: template src=httpd.j2 dest=/etc/httpd.conf notify: - restart apache - name: ensure apache is running action: service name=httpd state=started handlers: - name: restart apache action: service name=httpd state=restarted
  • 13.  Roles {re-usable components}  Galaxy {may be you cant count them but can use them!!} ◦ https://galaxy.ansible.com/  Ansible Tower {Need Money!!!}  templets  Callbacks (Python)  Action plugins (Python)  Inventory sources (any language)
  • 14.  Twitter ◦ https://www.youtube.com/watch?v=fwGrKXzocg4  Hootsuite ◦ www.ansible.com/blog/ansible-app-deployment-hootsuite ◦ http://code.hootsuite.com/automating-our-scala-deploys-with-ansible-case-study/  NASA ◦ http://www.ansible.com/blog/nasa-automation  Raun ◦ http://www.ansible.com/hs-fs/hub/330046/file-2130647754- pdf/Whitepapers__Case_Studies/ruan_case_study_(1).pdf  Lifesum ◦ http://www.ansible.com/hs-fs/hub/330046/file-2126676653- pdf/Whitepapers__Case_Studies/lifesum_case_study.pdf  Narrative Clip ◦ http://cdn2.hubspot.net/hub/330046/file-508495323- pdf/pdf_content/Narrative_Case_Study_AWS.pdf
  • 15.  https://docs.ansible.com/  https://www.openstack.org/summit/openstack-summit-atlanta- 2014/session-videos/presentation/taming-openstack-with-ansible  https://www.openstack.org/news/view/61/ansible-announces-the- simple-openstack-initiative  https://www.openstack.org/summit/vancouver-2015/summit- videos/presentation/deploying-openstack-with-ansible
  • 16. Thank You Maruti Gollapudi Principal Architect @IGATE @gmaruti github.com/gmaruti https://www.linkedin.com/in/marutigollapudi Blogofmaruti.blogspot.com