Switch to the store?

Ansible Playbook Essentials

More Information
Learn
  • Write simple tasks and plays
  • Organize code into a reusable, modular structure
  • Separate code from data using variables and Jinja2 templates
  • Run custom commands and scripts using Ansible's command modules
  • Control execution flow based on conditionals
  • Integrate nodes and discover topology information about other nodes in the cluster
  • Encrypt data with ansible-vault
  • Create environments with isolated configurations to match application development workflow
  • Orchestrate infrastructure and deploy applications in a coordinated manner
About

Ansible combines configuration management, orchestration, and parallel command execution into a single tool. Its batteries-included approach and built-in module library makes it easy to integrate it with cloud platforms, databases, and notification services without requiring additional plugins. Playbooks in Ansible define the policies your systems under management enforce. They facilitate effective configuration management rather than running ad hoc scripts to deploy complex applications.

This book will show you how to write a blueprint of your infrastructure encompassing multi-tier applications using Ansible's playbooks. Beginning with the basic concepts such as plays, tasks, handlers, inventory, and the YAML syntax that Ansible uses, you will see how to organize your code into a modular structure. Building on this, you will master techniques to create data-driven playbooks with variables, templates, logical constructs, and encrypted data. This book will also take you through advanced clustering concepts such as discovering topology information, managing multiple environments, and orchestration.

By the end of this book, you will be able to design solutions to your automation and orchestration problems using playbooks quickly and efficiently.

Features
  • Get to grips with Ansible’s features such as orchestration, automatic node discovery, and data encryption
  • Create data-driven, modular and reusable automation code with Ansible roles, facts, variables, and templates
  • A step-by-step approach to automating and managing system and application configurations effectively using Ansible's playbooks
Page Count 168
Course Length 5 hours 2 minutes
ISBN 9781784398293
Date Of Publication 4 Aug 2015
The command modules
Deploying a WordPress application – a hands-on approach
Review questions
Summary

Authors

Gourav Shah

Gourav Shah is a DevOps expert and corporate trainer. He's a passionate techie who delved into the world of open source and GNU/Linux while in engineering school, long before he turned his passion into a profession. He has more than 7 years' experience designing, deploying, and managing complex, high-performance, scalable, secure, and redundant clusters. He is an expert DevOps professional with proficiency in cloud computing, DevOps tools, configuration management/automation with Puppet/Chef, continuous integration/continuous delivery, centralized logging, monitoring, computer networks, and so on. Gourav worked at Efficient Frontier (later acquired by Adobe Systems) as part of the Ops team responsible for managing hundreds of servers and providing uptime 24x7x365. He formed and headed the Ops team in India. He quit his MNC job in 2012 and went on to establish Initcron, a DevOps consulting firm. Under the Initcron banner, Gourav provides DevOps consulting to various organizations, helping them build, automate, and maintain scalable systems on public/private clouds. Gourav also conducts corporate training on DevOps topics.