Ansible Whirlwind Tour
An Introduction
whoami
Sushant Srivastava
I work at Akamai Technologies Pvt. Ltd.
Platform Infrastructure Engineer
On my day job I work on Java, Python, Ruby,
Perl and Shell.
@ssushant on Twitter
Motivation - The Devops Revolution
Ansible Configuration management
● Easy to read syntax
● Nothing to install on remote hosts
● Push-based
● Ansible scales down
● Built-in modules
● Thin layer of Abstraction
How Ansible Works
Main Server Remote
Ansible Playbook
Main orchestration
A list of Plays
Each play contains
○ A set of hosts to configure
○ A list of tasks to be executed on those hosts
The Play illustration
Ansible Inventory File
The default way to describe your hosts
An ini file
Hosts can be grouped into such groups as
webservers, database servers etc.
Ansible Module
from ansible.module_utils.basic import *
use main() to run your script logic
use exit_json with information
use fail_json with failure message
Ansible Tips
Ansible uses SSH by default, so SSH
optimizations will come handy.
SSH Multiplexing
Thank you

Ansible whirlwind tour