IMPORTANT TO NOTE
This is the extended version of this workshop (~6 hours). For the shorter 90 minute session please 🔬 click here
If you’re new to Ansible Automation, this workshop consists of two parts: 1) starting with the basic fundamentals and 2) applying what you’ve learned to implement Ansible automation controller to your enterprise use cases. You’ll start off by writing your first Ansible playbook, work on Jinja templates, and implement higher-level Ansible roles. Next you’ll get started on automation controller, understand inventory and credential management, projects, job templates, surveys, workflows and more.
After finishing this lab you are ready to start using Ansible for your automation requirements.
This is documentation for Ansible Automation Platform 2.6
Recommended agenda for when there is an instructor teaching.
| Agenda Item | Link | Estimated Time |
|---|---|---|
| Slides: Introduction + Workshop Brief | 🖥️ Google Slides | ⏱️ 20 minutes |
| Lab: Section 1 — Command-line Ansible (Exercises 1.1–1.4) | 🚀 Launch Lab | ⏱️ 80 minutes |
| ☕ Break | ⏱️ 15 minutes | |
| Lab: Section 1 — Command-line Ansible (Exercises 1.5–1.7) | 🚀 Launch Lab | ⏱️ 55 minutes |
| ☕ Break | ⏱️ 15 minutes | |
| Lab: Section 2 — Ansible Automation Platform (Exercises 2.1–2.4) | 🚀 Launch Lab | ⏱️ 70 minutes |
| ☕ Break | ⏱️ 15 minutes | |
| Lab: Section 2 — Ansible Automation Platform (Exercises 2.5–2.8) | 🚀 Launch Lab | ⏱️ 75 minutes |
| Slides: Close Out & Q&A | 🖥️ Google Slides | ⏱️ 10 minutes |
| Exercise | Description | Estimated Time |
|---|---|---|
| 1.1 Writing Your First Playbook | Create and run your first Ansible playbook | ⏱️ 25 minutes |
| 1.2 Using Variables | Learn how to use variables in playbooks | ⏱️ 20 minutes |
| 1.3 Conditionals, Handlers and Loops | Implement conditionals, handlers, and loops | ⏱️ 20 minutes |
| 1.4 Templates | Use Jinja2 templates to create dynamic configurations | ⏱️ 15 minutes |
| 1.5 Collections | Explore and use Ansible collections | ⏱️ 15 minutes |
| 1.6 Ansible Navigator & Execution Environments | Introduction to Ansible Navigator and execution environments | ⏱️ 20 minutes |
| 1.7 Debugging and Error Handling | Debug playbooks and handle errors effectively | ⏱️ 20 minutes |
| Exercise | Description | Estimated Time |
|---|---|---|
| 2.1 Introduction to Automation Platform | Get familiar with the Ansible Automation Controller web UI | ⏱️ 15 minutes |
| 2.2 Inventories and Credentials | Manage inventories and credentials in automation controller | ⏱️ 15 minutes |
| 2.3 Projects & Job Templates | Create projects and job templates to run automation | ⏱️ 20 minutes |
| 2.4 Surveys | Add surveys to job templates for user-driven input | ⏱️ 20 minutes |
| 2.5 Role-based Access Control | Configure RBAC to manage user access and permissions | ⏱️ 15 minutes |
| 2.6 Workflows | Build multi-step automation workflows | ⏱️ 20 minutes |
| 2.7 System Roles | Use RHEL System Roles for firewall and timesync configuration | ⏱️ 15 minutes |
| 2.8 Wrap Up | Capstone exercise combining inventory, templates, surveys, and RBAC | ⏱️ 25 minutes |
Additional material for Ansible and RHEL Automation
| Title | Type | Link |
|---|---|---|
| Ansible Automation Platform Self-Paced Labs | Interactive labs | 🔬 Self-Paced Labs |
| Red Hat Training and Certification for AAP | Training | 📖 Training Catalog |
| Get a Trial Subscription for AAP | Trial | 🧪 Start Trial |
This is an official Ansible Workshop
This workshop is maintained by the Red Hat Ansible Technical Marketing Team.
Please open an issues on Github
