Ansible is an automation tool for administering groups of servers. It also automates repetitive tasks such as deploying apps to those servers. It is a compelling choice for software developers that need to manage servers.
3. • “Deploying Rails applications used to be a pain…” -
Michael Hartl
Rails’ Reputation
rmcore.com
•“Rails sucks
•My experience is admittedly limited here, but as far as I
can tell, installing a Rails app is impossible.” -Eevee
8. •Playbooks contain Plays
•Plays contain Tasks
• Tasks call Modules
•Everything is sequentially ordered except
handlers that run at the end.
Ansible Playbooks
rmcore.com
9. A task calls a module to do the work.
Ansible Tasks
rmcore.com
---
- name: Install git
yum: pkg=git
state=installed
11. not all tasks are run:
Output of playbook
rmcore.com
PLAY [rails]
GATHERING FACTS
ok: [136.166.60.99]
PLAY RECAP
136.166.60.99 : ok=14 changed=7 unreachable=0 failed=0
15. Connect with me on twitter:
@rdg_rmcore
Read more at my website:
http://rmcore.com/
On the internets
rmcore.com
16. • The sad state of web app deployment
• Ruby on Rails Tutorial
• Efficient Rails DevOps
• An Overview of Chef
• Ansible Quick Start Video
• Stockfighter CTF
• There Is No Cloud
• Cloudcast Ansible Episode
• Postgresql Automation w/Ansible
References
rmcore.com