Book Image

Hands-On Infrastructure Automation with Ansible [Video]

By : Alan Hohn
4 (1)
Book Image

Hands-On Infrastructure Automation with Ansible [Video]

4 (1)
By: Alan Hohn

Overview of this book

Ansible is an infrastructure automation framework; other examples include Chef, Puppet, and SaltStack. While each framework offers its own unique features, Ansible has an advantage: simplicity. Ansible configuration uses simple, compact, and clean YAML files that are easy to understand and maintain. Ansible is agentless, which means Ansible itself doesn't need to be installed on target machines. At the same time, while Ansible is simple to learn, it is powerful and extensible, making it the perfect choice even for demanding tasks such as configuring an entire OpenStack cluster. This video course will show you how to use Ansible to automate deployment so you can quickly and reliably run and upgrade your applications. You will learn how Infrastructure Automation results in cost reduction, productivity, availability, reliability, and performance. You will follow along step-by-step on a real Ansible deployment of dotCMS, an open-source Content Management System (CMS), which will deliver content to websites, intranets and mobile apps. You will gain real-world experience that will get you started quickly on your own deployments. This will include information on all of Ansible's core concepts and features, including playbooks, tasks, roles, templates, variables, and modules. By the end of the course, you will be able to create and maintain Ansible playbooks, roles, and custom modules, enabling you to make full use of Ansible as part of a DevOps or automation strategy. The code bundle for this video course is available at https://github.com/PacktPublishing/Hands-on-Infrastructure-Automation-with-Ansible
Table of Contents (8 chapters)
Chapter 5
Maintaining Roles and Templates with Variables
Content Locked
Section 6
Using Lists and Dictionaries in Tasks
By driving tasks using YAML list and dictionary data structures, we can produce more compact and more configurable roles. - Use a YAML list to install multiple packages to a system - Use a YAML dictionary to identify multiple configuration files to create on a system - Use the YAML dictionary data to drive the contents of the multiple configuration files we created