Instructor-Led Red Hat Training
Advanced Ansible
4 days
This hands-on course explores playbook and role development, variables and templating, inventory management, troubleshooting, error handling, reusable automation, and best practices for running Ansible at scale. The course also includes Ansible Automation Controller, Git integration, execution environments, workflows, credentials, and RBAC. Hands-on RHEL labs include patching, service and package management, configuration changes, rolling updates, and troubleshooting automation in realistic scenarios.
Prerequisite: Introduction to Ansible or equivalent experience
Course Outline
Chapter 1: ANSIBLE OVERVIEW
Why Ansible?
Overview of Architecture
QUIZ: Architecture
Inventory
Inventory Patterns
Inventory Plugins
QUIZ: Inventory and Patterns
DEMO: Introducing Ansible
Chapter 2: DEPLOYING ANSIBLE
Installing
Configuration Files
DEMO: Configuration Files
Module Syntax Help
Running Ad-Hoc Commands
DEMO: Ad-Hoc Commands
Dynamic Inventory
DEMO: Dynamic Inventory
Chapter 3: OPTIMIZING ANSIBLE
Connection Types
Delegation
Parallelism
Callback Plugins
Lab Tasks
1. Optimizing Ansible
Chapter 4: PLAYBOOKS BASICS
Writing YAML Files
Playbook Structure
Host and Task Execution Order
Command Modules
Significant Module Categories
Lab Tasks
1. Playbook Basics
2. Playbooks: Command Modules
3. Playbooks: Common Modules
Chapter 5: VARIABLES AND INCLUSIONS
Variables
Variables – Playbooks
Variables – Inventory
Variables – Registered
Variables – Magic
Facts
DEMO: Facts
Inclusions
Lab Tasks
1. Variables and Facts
2. Inclusions
Chapter 6: JINJA2 TEMPLATES
Jinja2
The template Module
Expressions
QUIZ: Jinja2 Templates
Filters
Methods
Tests
Lookups
Control Structures
DEMO: Jinja2 Templates
Lab Tasks
1. Jinja2 Templates Basics
2. Jinja2 Templates
3. Jinja2 Templates
Chapter 7: TASK CONTROL
Loops
Loops (cont.)
Loops and Variables
DEMO: Constructing Flow Control
Conditionals
DEMO: Conditionals
Handlers
Tags
Handling Errors
Lab Tasks
1. Task Control
Chapter 8: ROLES
Roles
Role Usage Details
Creating Roles
QUIZ: Role Structure
Deploying Roles with Ansible Galaxy
Lab Tasks
1. Converting Playbooks to Roles
2. Creating Roles from Scratch
3. Ansible Galaxy Roles
Chapter 9: ANSIBLE VAULT
Configuring Ansible Vault
Vault IDs
Executing with Ansible Vault
DEMO: Configuring Ansible Vault
Lab Tasks: Ansible Vault
Chapter 10: Ansible Automation Controller
Chapter 11: CI/CD, Workflows, and RBAC
