Introduction to Ansible ANSIBLE Course Material · Practical Exercises + MCQs · 15/01/2026

ANSIBLE Course Material

9 chapters, each with practical exercises (where appropriate) and a multiple-choice quiz, plus 2 end-of-day exercises.

Prerequisites
Basic Linux, SSH, YAML, a little Git, and a willingness not to click 200 times.
Recommended setup
1 “control” VM + 2 “managed” VMs (Debian/Ubuntu) in VirtualBox, using bridged networking.
Learning objective
Learn to write clean, reproducible playbooks that are safe enough not to break everything.

Contents

ChapterTitleContent
1Fundamentals of AutomationConfiguration management, objectives, comparison (Puppet/Chef/…)
2Ansible PrinciplesOrigins, terminology, concepts, how it works
3Ansible PlaybookSSH, Git, commands, modules, YAML, variables, roles, best practices
4Installing AnsibleSSH, basic commands, modules (files/users/packages/services)
5Ansible PlaybooksManaging the environment, task control, cloud, Windows
6Ansible RolesWhy use roles, structure, architecture
7Advanced PlaybooksLearning objectives, variables multi-niveaux, patterns avancés
8Ansible VaultSecrets, encryption, best practices
9Ansible GalaxyModularity and collections
BONUSCreating a Custom Ansible ModulePython, custom modules, parameters, register and practical exercises
BONUSBONUS – Understanding and Using gather_factsPython, custom modules, parameters, register and practical exercises
-End-of-Day Exercise 1Practical exercise
-End-of-Day Exercise 2Final practical exercise

Suggested Organisation for Practical Exercises

“Simple and effective” topology

  • ctrl (control node): Ansible + Git
  • node1, node2 (managed nodes): SSH, Python
  • Network: bridged networking (to access the internet and other VMs), DNS names or /etc/hosts

Rules for Survival

  • One Git repository per practical exercise (or at least regular commits).
  • Never store secrets in plain text in Git (Vault is covered in Chapter 8).
  • --check, --diff, and a healthy interest in idempotence.
Note: This course material is deliberately practical. I am here to answer any questions not covered in these materials.