O'Reilly logo
live online training icon Live Online training

Ansible in 4 Hours

Get started with Ansible

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
  • Using Inclusions

This training course is for you because...

  • This Training provides candidates with the basic skills that are required for working with 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


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.

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 has been teaching Linux since 1995 and has written more than 60 books about different Linux related topics. Sander is the author of the best-selling previous editions of the RHCSA Complete Video Course, as well as many other Red Hat related video courses. He is also a regular speaker on major Linux conferences all over 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: Using Inventory (20 minutes)

  • Students will learn why inventory is important and how to use it

Segment 4: 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 5: Using Ansible Playbooks (60 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 6: Using Variables (20 minutes)

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

Segment 7: Using Items (15 minutes) - Students will learn how items can be used to organize Ansible in a more efficient way

Segment 8: Understanding Vault, Galaxy and Ansible Tower (15 minutes) - Students will get an introduction to more advanced Ansible features, including Vault, Galaxy and Ansible Tower