SlideShare a Scribd company logo
| Ansible @ PyWaw

Ansible
Grzegorz Nosek
PyWaw 21.01.2013
| Ansible @ PyWaw

Ansible
Grzegorz Nosek
PyWaw 21.01.2013
| Ansible @ PyWaw

Ansible
fictitious machine capable of instantaneous
or superluminal communication
– http://en.wikipedia.org/wiki/Ansible
| Ansible @ PyWaw

Ansible
the easiest way to deploy, manage, and orchestrate
computer systems you've ever seen
– http://ansible.cc/
| Ansible @ PyWaw
www1
ssh

www2

master
db1

db2
| Ansible @ PyWaw

# pip install ansible
# mkdir /etc/ansible
# cat > /etc/ansible/hosts << EOF
master

master

[www]
www1
www2
[db]
db1
db2
EOF
| Ansible @ PyWaw
www1

www2

. python (2.6)
. authorized_keys
db1

db2
| Ansible @ PyWaw

mass ssh
ansible all -m ping
ansible www -m service -a „name=nginx
state=restarted”
ansible db1 -m command -a „killall pgdump”
| Ansible @ PyWaw

deploy (fabric)
ansible-playbook deploy.yml
--- hosts: www
actions:
- action: git repo=... dest=...
notify: restart gunicorn
handlers:
- name: restart gunicorn
action: service name=gunicorn
state=restarted
- hosts: db
actions:
- ...
| Ansible @ PyWaw

deploy (fabric)
+ declarative
+ idempotent

wget
./configure && make
make install
template src=... dest=...
service foo state=started
| Ansible @ PyWaw

config mgmt (puppet)
--- hosts: www
actions:
- action: apt pkg=$item
with_items:
- nginx
- python-virtualenv
- action: template src=... dest=...
- action: command foo creates=/etc/bar
| Ansible @ PyWaw

config mgmt (puppet)
+ imperative
+ non-idempotent
+ cross-machine
| Ansible @ PyWaw

provisioning
. EC2
. VMWare
. VirtualBox
. HP iLO
. ...
| Ansible @ PyWaw

Ansible modules
. command
. git
. fetch
. template
. service
. +∞
„

| Ansible @ PyWaw

Boże, żebyśmy my to
mieli w $(job-1)
– Marcin, nasz nowy admin :)
| Ansible @ PyWaw

http://ansible.cc/
QA?

More Related Content

PPTX
Introduction to ansible
PDF
Ansible Introduction - Ansible Brno #1 - David Karban
PPT
CloudStack / Saltstack lightning talk at DevOps Amsterdam
PDF
Network Automation with Ansible
PDF
Warsztaty ansible
PDF
Introduction to ansible
PDF
A quick intro to Ansible
PDF
Ansible Crash Course
Introduction to ansible
Ansible Introduction - Ansible Brno #1 - David Karban
CloudStack / Saltstack lightning talk at DevOps Amsterdam
Network Automation with Ansible
Warsztaty ansible
Introduction to ansible
A quick intro to Ansible
Ansible Crash Course

What's hot (19)

PPTX
Getting started with automation using ansible
PPTX
Journey to Microservice architecture via Amazon Lambda
PDF
Ansible 101
ODP
Ansible basics workshop
PPTX
Automating with Ansible
PDF
Automation using power cli
PDF
Provisioning Rails Servers with Ansible
PPT
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
PDF
Custom Non-RDS Multi-AZ Mysql Replication
ODP
Nagios Conference 2014 - Spenser Reinhardt - Detecting Security Breaches With...
PDF
Automatic Kamailio Deployments With Puppet
PDF
IT Automation with Ansible
PDF
Nagios Conference 2014 - David Josephsen - Alert on What You Draw
PDF
Jenkins and ansible reference
PDF
Cloudy with a Chance of Fireballs: Provisioning and Certificate Management in...
PDF
Chef for OpenStack: OpenStack Spring Summit 2013
PDF
Hands On Introduction To Ansible Configuration Management With Ansible Comple...
PPTX
Introduction to Ansible
PPTX
Docker ansible-make-chef-puppet-unnecessary-minnihan
Getting started with automation using ansible
Journey to Microservice architecture via Amazon Lambda
Ansible 101
Ansible basics workshop
Automating with Ansible
Automation using power cli
Provisioning Rails Servers with Ansible
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Custom Non-RDS Multi-AZ Mysql Replication
Nagios Conference 2014 - Spenser Reinhardt - Detecting Security Breaches With...
Automatic Kamailio Deployments With Puppet
IT Automation with Ansible
Nagios Conference 2014 - David Josephsen - Alert on What You Draw
Jenkins and ansible reference
Cloudy with a Chance of Fireballs: Provisioning and Certificate Management in...
Chef for OpenStack: OpenStack Spring Summit 2013
Hands On Introduction To Ansible Configuration Management With Ansible Comple...
Introduction to Ansible
Docker ansible-make-chef-puppet-unnecessary-minnihan
Ad

Viewers also liked (6)

PDF
Ansible w praktyce
PDF
LXC - kontener pingwinów
PDF
Sysdig
PPTX
Valiant Load Balancing and Traffic Oblivious Routing
PDF
Ansible
PDF
Django SEM
Ansible w praktyce
LXC - kontener pingwinów
Sysdig
Valiant Load Balancing and Traffic Oblivious Routing
Ansible
Django SEM
Ad

Similar to Ansible PyWAW (20)

PDF
Ansible is the simplest way to automate. SymfonyCafe, 2015
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
PDF
CloudOpen 2014 - Extending Cloud Automation, When OpenStack Meets Ansible
ODP
ansible why ?
PPTX
How to deploy spark instance using ansible 2.0 in fiware lab v2
PPTX
How to Deploy Spark Instance Using Ansible 2.0 in FIWARE Lab
PPTX
SESSION Ansible how to deploy and push resources
PDF
Ansible_Basics_ppt.pdf
PPTX
Ansible as configuration management tool for devops
PPTX
Ansible Devops North East - slides
PDF
Toshaan Bharvani – Icinga2 and Ansible, how to manage and migrate
PDF
NFD9 - Matt Peterson, Data Center Operations
PDF
Ansible : what's ansible & use case by REX
PDF
Ansible 101 - Presentation at Ansible STL Meetup
PPTX
Intro to-ansible-sep7-meetup
PDF
Ansible101
PDF
Webinar: Automate IBM Connections Installations and more
PDF
OpenNebula 5.4 Hands-on Tutorial
PDF
Ansible automation tool with modules
PDF
Ansible not only for Dummies
Ansible is the simplest way to automate. SymfonyCafe, 2015
Ansible is the simplest way to automate. MoldCamp, 2015
CloudOpen 2014 - Extending Cloud Automation, When OpenStack Meets Ansible
ansible why ?
How to deploy spark instance using ansible 2.0 in fiware lab v2
How to Deploy Spark Instance Using Ansible 2.0 in FIWARE Lab
SESSION Ansible how to deploy and push resources
Ansible_Basics_ppt.pdf
Ansible as configuration management tool for devops
Ansible Devops North East - slides
Toshaan Bharvani – Icinga2 and Ansible, how to manage and migrate
NFD9 - Matt Peterson, Data Center Operations
Ansible : what's ansible & use case by REX
Ansible 101 - Presentation at Ansible STL Meetup
Intro to-ansible-sep7-meetup
Ansible101
Webinar: Automate IBM Connections Installations and more
OpenNebula 5.4 Hands-on Tutorial
Ansible automation tool with modules
Ansible not only for Dummies

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Modernizing your data center with Dell and AMD
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Modernizing your data center with Dell and AMD
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Encapsulation_ Review paper, used for researhc scholars
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
KodekX | Application Modernization Development
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Understanding_Digital_Forensics_Presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)

Ansible PyWAW

  • 1. | Ansible @ PyWaw Ansible Grzegorz Nosek PyWaw 21.01.2013
  • 2. | Ansible @ PyWaw Ansible Grzegorz Nosek PyWaw 21.01.2013
  • 3. | Ansible @ PyWaw Ansible fictitious machine capable of instantaneous or superluminal communication – http://en.wikipedia.org/wiki/Ansible
  • 4. | Ansible @ PyWaw Ansible the easiest way to deploy, manage, and orchestrate computer systems you've ever seen – http://ansible.cc/
  • 5. | Ansible @ PyWaw www1 ssh www2 master db1 db2
  • 6. | Ansible @ PyWaw # pip install ansible # mkdir /etc/ansible # cat > /etc/ansible/hosts << EOF master master [www] www1 www2 [db] db1 db2 EOF
  • 7. | Ansible @ PyWaw www1 www2 . python (2.6) . authorized_keys db1 db2
  • 8. | Ansible @ PyWaw mass ssh ansible all -m ping ansible www -m service -a „name=nginx state=restarted” ansible db1 -m command -a „killall pgdump”
  • 9. | Ansible @ PyWaw deploy (fabric) ansible-playbook deploy.yml --- hosts: www actions: - action: git repo=... dest=... notify: restart gunicorn handlers: - name: restart gunicorn action: service name=gunicorn state=restarted - hosts: db actions: - ...
  • 10. | Ansible @ PyWaw deploy (fabric) + declarative + idempotent wget ./configure && make make install template src=... dest=... service foo state=started
  • 11. | Ansible @ PyWaw config mgmt (puppet) --- hosts: www actions: - action: apt pkg=$item with_items: - nginx - python-virtualenv - action: template src=... dest=... - action: command foo creates=/etc/bar
  • 12. | Ansible @ PyWaw config mgmt (puppet) + imperative + non-idempotent + cross-machine
  • 13. | Ansible @ PyWaw provisioning . EC2 . VMWare . VirtualBox . HP iLO . ...
  • 14. | Ansible @ PyWaw Ansible modules . command . git . fetch . template . service . +∞
  • 15. „ | Ansible @ PyWaw Boże, żebyśmy my to mieli w $(job-1) – Marcin, nasz nowy admin :)
  • 16. | Ansible @ PyWaw http://ansible.cc/ QA?