O'Reilly logo
live online training icon Live Online training

Ansible in 4 Hours

Get started with Ansible

Topic: System Administration
Sander van Vugt

Ansible is a configuration management solution that can be used in DevOps environments to deploy and manage software and configurations on different assets in the data center. Using Ansible makes deploying software more efficient and allows companies to implement an easy-to-use standard for managing any IT assets. Ansible has rapidly evolved to one of the most important solutions for configuration management and can be used in heterogeneous environments and on multiple operating systems

What you'll learn-and how you can apply it

  • Understanding Ansible
  • Setting up an environment for Ansible management
  • Working with ad-hoc commands
  • Understanding Ansible modules
  • Automating configuration deployments using Ansible playbooks
  • Using Variables and Facts
  • Using Control Structures

This training course is for you because...

  • This Training provides candidates with the basic skills that are required for working with Ansible
  • Based on the information provided in this course, candidates have a solid foundation to continue and pursue the Red Hat Certified Engineer exam, which is all about Ansible


  • Basic knowledge or experience with Linux is recommended

Materials, downloads, or Supplemental Content needed in advance

To work through the labs in this course, the course participant needs to install and configure his own lab environment, consisting of 2 virtual machines running a recent version of CentOS. Instructions on how to set up a lab environment can be found at: https://learning.oreilly.com/videos/red-hat-certified/9780134723990/9780134723990-RHCA_00_Intro_III-01

Instructions on how to set up a lab environment can be found at: https://learning.oreilly.com/videos/linux-fundamentals/9780135560396/9780135560396-LFUN_01_01_02


A basic understanding of Linux will help participants. This knowledge can be found in Linux Fundamentals LiveLessons

If you would like to run Ansible labs after taking this course, please see check out Sander’s video course Ansible Certification which has hands-on demos and labs throughout, or continue and take the RHCE 8 /EX294 video course, which goes in depth about Ansible topics.

Common Misunderstandings

  • Many people think that Ansible only used in big IT environments. That's not so. Using Ansible can also be beneficial if just a few machines need to be managed
  • Some think that learning Ansible is difficult, but anyone can run their first Ansible deployment within a matter of minutes

About your instructor

  • Sander van Vugt started working with Linux in 1992. He wrote his first book about Linux in 1999, and up to date has completed 62 different books on Linux related topics, including the best selling titles like the RHCSA Complete Video Course and the Certified Kubernetes Application Developer (CKAD) Crash Course as well as many other open source platform titles. He also works as a Linux instructor, teaching on-site and on-line classes for customers around the world.


The timeframes are only estimates and may vary according to how the class is progressing

Segment 1: Understanding Ansible (20 minutes)

  • Students will learn what Ansible is and in which type of scenarios can be useful.

Segment 2: Setting up Ansible (40 minutes)

  • Students will learn how to set up a basic Ansible environment, using SSH, sudo, Ansible configuration as well as an Inventory file for working with Ansible

Break (10 minutes)

Segment 3: Working with modules and Ad-hoc Commands (30 minutes)

  • Students will learn how to use Ad-hoc commands to run specific tasks on managed host

Break (10 minutes)

Segment 4: Using Ansible Playbooks (30 minutes)

  • Students will learn how to write an Ansible playbook, using some of the most common components, including Facts, tasks, handlers, and inclusions

Break (10 minutes)

Segment 5: Using Variables (45 minutes)

  • Students will learn how to use variables to make Ansible playbooks more flexible

Segment 6: Using Control Structures (45 minutes)

  • Students will learn how control structures can be used to organize Ansible in a more efficient way