Hands-On Infrastructure Automation with Ansible

Video description

A practical course for beginners to Ansible. Learn to deploy applications the right way

About This Video

  • Understand infrastructure automation and learn to decide what makes Ansible a good choice for your projects.
  • Get started with Ansible through playbooks and organize the automation of infrastructure tasks by building and using roles from Ansible Galaxy.
  • Explore variables and templates to make it easy to configure application deployments.

In Detail

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

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : What Ansible Can Do?
    1. The Course Overview 00:05:52
    2. Ansible Demo 00:06:50
    3. DevOps and Immutable Infrastructure 00:10:12
    4. Ansible As a Choice for DevOps 00:07:51
    5. Ansible Install and Remote Management 00:06:47
    6. Running Ansible Commands 00:05:38
  2. Chapter 2 : Exploring Inventory and Playbook Usage
    1. Ansible Inventory File 00:08:37
    2. Introduction to Playbooks 00:08:38
    3. Using Tasks and Handlers 00:10:11
    4. Configuring Systems through the Inventory 00:06:12
    5. Creating Inventory Groups 00:07:25
    6. Controlling Playbook Runs 00:05:55
  3. Chapter 3 : Applying Roles to Multiple Systems
    1. Create and Use Roles 00:09:12
    2. Applying Commonly Used Modules 00:11:15
    3. Getting Roles from Ansible Galaxy 00:07:10
    4. Using Role Handlers, Files, and Templates 00:08:31
    5. Role Dependencies 00:08:24
  4. Chapter 4 : Using the Template Library
    1. Writing Out Files from a Template 00:10:45
    2. Template Flow Control 00:06:43
    3. Repeated Configuration Content 00:12:43
    4. Using Defaults and Filters 00:11:20
    5. Defining Reusable Blocks and Inheritance 00:06:50
  5. Chapter 5 : Maintaining Roles and Templates with Variables
    1. Using Variables for All Roles 00:10:35
    2. Exploring Ansible Facts 00:06:38
    3. Applying Variables to Groups and Hosts 00:08:54
    4. Using Variables to Control Tasks 00:07:34
    5. Registering Results in Variables 00:07:47
    6. Using Lists and Dictionaries in Tasks 00:09:09
  6. Chapter 6 : Storing Your Project Files in the Vault
    1. Ansible Vault Purpose 00:08:59
    2. Encrypt and Decrypt Files 00:05:55
    3. Create Vault Password Files 00:08:35
    4. Encrypting Files for Delivery 00:10:25
  7. Chapter 7 : Building Custom Modules for Tasks
    1. Ansible Module Structure 00:09:16
    2. Module Arguments and Results 00:08:32
    3. Module Idempotence 00:10:24
    4. Module Check Mode and Module Testing 00:09:25
    5. Module Documentation and Metadata 00:07:43
  8. Chapter 8 : Using Ansible with Other Tools
    1. Ansible Docker Connector 00:08:40
    2. Ansible with Vagrant 00:09:00
    3. Ansible and Vagrant Custom Variables 00:12:07
    4. Ansible and Packer 00:10:50
    5. Using Packer and Ansible to Build Docker Images 00:10:36

Product information

  • Title: Hands-On Infrastructure Automation with Ansible
  • Author(s): Alan Hohn
  • Release date: April 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788991599