Ansible
-
Upload
vishal-yadav -
Category
Software
-
view
447 -
download
0
Transcript of Ansible
Ansible: Next Gen Configuration
Management and Provisioning
Vishal Yadav
Mphasis Ltd.
Agenda
• Why – Motivation for Use
• What – Let’s Introduce
• How – It Works
• Reference
Why – Motivation for Use
What Are You Doing
How Are You Doing
Requirement Scale-out
What – Let’s Introduce
Features
How – It Work’s
Building Blocks
• Ad-hoc Commands
• Inventory
• Playbook� Push Mode
� Pull Mode
� Tasks
� Variables
� Templates
� Handlers
� Roles
� Modules
Ad-hoc Commands
Ad-hoc Commands
Ad-hoc Commands
Inventory
Playbooks
Playbooks – Push Mode
Playbooks – Pull Mode
Playbook – Example
Playbook – Tasks
ansible-playbook run
Playbook - Variables
Variables - Example
Variables - Example
Playbooks - Templates
Templates – sudoers Jinja2 template
Templates – sudoers file after expansion
Handlers
Roles
Roles
Generalization v/s Specialization (Tasks and Roles)
Modules
Ansible-Galaxy
What We Achieved (See Slide #6)
Reference
• Ansible Docs (http://docs.ansible.com/ansible/index.html)
• Ansible for DevOps by Jeff Geerling
(https://leanpub.com/ansible-for-devops)