Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Ansible Mastery: From Basics to Advanced Automation
Role Play
Rating: 4.0 out of 5(209 ratings)
15,656 students

Ansible Mastery: From Basics to Advanced Automation

Automate Linux with Ansible: inventories, playbooks, variables, loops, handlers and error handling on RHEL 9 and Vagrant
Created byVitalii Shumylo
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Set up and configure Ansible environments in both Red Hat Enterprise Linux and Vagrant-based labs.
  • Create and manage Ansible inventories to organize and control target hosts effectively.
  • Write and execute Ansible playbooks to automate complex IT tasks and system configurations.
  • Implement loops, conditionals, and handlers to create dynamic and responsive Ansible playbooks.
  • Manage variables and facts to create flexible and reusable Ansible automation solutions.
  • Implement proper error handling and task failure management in Ansible playbooks.

Course content

4 sections • 55 lectures • 7h 33m total length
  • Seetting up an Ansible Lab with RHEL9 VMs10:55
  • Configuring the VMs7:58
  • Configuring the prerequisites on managed hosts5:52
  • Setting up SSH Key-based Authentication3:14
  • Understanding YAML Syntax. Part 111:39
  • Understanding YAML Syntax. Part 211:02
  • What is an Ansible Inventory?7:36
  • Building an Ansible Inventory4:54
  • Using Ansible Ad-Hoc Commands11:24
  • Ansible Ad-Hoc Commands: A Practical Demonstration6:53
  • Guided Exercise: Ansible Ad-Hoc Commands in Practice16:26
  • Introduction to Ansible Playbooks. Part 18:09
  • Introduction to Ansible Playbooks. Part 211:32
  • Introduction to Ansible Playbooks. Part 34:24
  • Introduction to Ansible Playbooks. Part 46:57
  • Introduction to Ansible Playbooks. Part 58:08
  • Introduction to Ansible Playbooks. Part 67:25
  • Section Quiz: A Quick Start with Red Hat VMs

Requirements

  • Basic understanding of Linux command line interface and system administration concepts.
  • Access to a computer with virtualization capabilities for running lab environments.

Description

If you log in to servers one by one to make the same change, Ansible is the next step. You describe the result in a playbook, and Ansible makes every server match it - repeatably, and without an agent on the targets. This course takes you from the first inventory to playbooks with loops, conditions, handlers and error handling.

How the course works

You work in two labs: Red Hat Enterprise Linux 9 virtual machines and a Vagrant-based lab you can rebuild in minutes. Each lecture shows the playbook, runs it and explains the output, so you can repeat it in your own lab. Two practice tests at the end check what you learned.

Inside the course

  • Quick start with Red Hat VMs: installation, configuration file, inventory, ad hoc commands and the first playbooks.
  • Quick start with a Vagrant lab: the same basics in a lab you can create and destroy on demand.
  • Continue with Ansible automation: variables and facts, loops, conditionals, handlers, task failures and blocks.

A practical example

A typical task: a web server package, its configuration and its firewall rule must be the same on ten servers, and the service must restart only when the configuration changes. One playbook with a handler does exactly that.

The course runs about 7.5 hours in 55 lectures and includes two practice tests (94 questions). You need basic Linux command-line skills and a PC that can run virtual machines.

Who this course is for:

  • IT professionals seeking to automate system administration tasks and streamline infrastructure management.
  • DevOps engineers looking to enhance their skills in configuration management and continuous deployment.
  • System administrators aiming to reduce manual workload and improve efficiency through automation.
  • Beginners in IT automation who want a comprehensive, hands-on introduction to Ansible and its capabilities.