Ansible for DevOps is a collection of Ansible playbooks, roles, and infrastructure-as-code examples that accompany the book Ansible for DevOps by Jeff Geerling. Rather than being theoretical, the examples span real-world infrastructure setups: multi-server orchestration, LAMP stacks, Docker deployments, Kubernetes cluster spins, rolling updates, and security hardening. You can clone the repo and play with actual scenarios using Vagrant, VirtualBox, or cloud hosts, making it ideal for both learning and reference in production readiness. The code is structured by chapter/topic, so you can pick a scenario (for example “nodejs deployment” or “ELK stack”) and dive into a fully featured Ansible solution rather than starting from scratch. Because Ansible is popular for provisioning and configuration management, this repository lowers the barrier to experimenting with real infra patterns.
Features
- A large set of categorized playbooks and roles for real infrastructure (LAMP, Docker, Kubernetes)
- Example usage of Ansible features like dynamic inventory, rolling deployments, and security hardening
- Vagrant/VirtualBox configurations to spin up local test environments for experimentation
- Production-style patterns: roles, includes, modular playbooks for maintainability
- Clear mapping to book chapters so learners can follow along or jump to topics
- MIT-licensed examples you can adapt for your own automation pipelines