Oreilly - Hands-On Infrastructure Automation with Ansible
by Alan Hohn | Released April 2018 | ISBN: 9781788991599
A practical course for beginners to Ansible. Learn to deploy applications the right wayAbout This VideoUnderstand 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 DetailAnsible 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 Show and hide more Publisher resources Download Example Code
- Chapter 1 : What Ansible Can Do?
- The Course Overview 00:05:52
- Ansible Demo 00:06:50
- DevOps and Immutable Infrastructure 00:10:12
- Ansible As a Choice for DevOps 00:07:51
- Ansible Install and Remote Management 00:06:47
- Running Ansible Commands 00:05:38
- Chapter 2 : Exploring Inventory and Playbook Usage
- Ansible Inventory File 00:08:37
- Introduction to Playbooks 00:08:38
- Using Tasks and Handlers 00:10:11
- Configuring Systems through the Inventory 00:06:12
- Creating Inventory Groups 00:07:25
- Controlling Playbook Runs 00:05:55
- Chapter 3 : Applying Roles to Multiple Systems
- Create and Use Roles 00:09:12
- Applying Commonly Used Modules 00:11:15
- Getting Roles from Ansible Galaxy 00:07:10
- Using Role Handlers, Files, and Templates 00:08:31
- Role Dependencies 00:08:24
- Chapter 4 : Using the Template Library
- Writing Out Files from a Template 00:10:45
- Template Flow Control 00:06:43
- Repeated Configuration Content 00:12:43
- Using Defaults and Filters 00:11:20
- Defining Reusable Blocks and Inheritance 00:06:50
- Chapter 5 : Maintaining Roles and Templates with Variables
- Using Variables for All Roles 00:10:35
- Exploring Ansible Facts 00:06:38
- Applying Variables to Groups and Hosts 00:08:54
- Using Variables to Control Tasks 00:07:34
- Registering Results in Variables 00:07:47
- Using Lists and Dictionaries in Tasks 00:09:09
- Chapter 6 : Storing Your Project Files in the Vault
- Ansible Vault Purpose 00:08:59
- Encrypt and Decrypt Files 00:05:55
- Create Vault Password Files 00:08:35
- Encrypting Files for Delivery 00:10:25
- Chapter 7 : Building Custom Modules for Tasks
- Ansible Module Structure 00:09:16
- Module Arguments and Results 00:08:32
- Module Idempotence 00:10:24
- Module Check Mode and Module Testing 00:09:25
- Module Documentation and Metadata 00:07:43
- Chapter 8 : Using Ansible with Other Tools
- Ansible Docker Connector 00:08:40
- Ansible with Vagrant 00:09:00
- Ansible and Vagrant Custom Variables 00:12:07
- Ansible and Packer 00:10:50
- Using Packer and Ansible to Build Docker Images 00:10:36
Show and hide more