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
| Chapter | Title | Content |
|---|---|---|
| 1 | Fundamentals of Automation | Configuration management, objectives, comparison (Puppet/Chef/…) |
| 2 | Ansible Principles | Origins, terminology, concepts, how it works |
| 3 | Ansible Playbook | SSH, Git, commands, modules, YAML, variables, roles, best practices |
| 4 | Installing Ansible | SSH, basic commands, modules (files/users/packages/services) |
| 5 | Ansible Playbooks | Managing the environment, task control, cloud, Windows |
| 6 | Ansible Roles | Why use roles, structure, architecture |
| 7 | Advanced Playbooks | Learning objectives, variables multi-niveaux, patterns avancés |
| 8 | Ansible Vault | Secrets, encryption, best practices |
| 9 | Ansible Galaxy | Modularity and collections |
| BONUS | Creating a Custom Ansible Module | Python, custom modules, parameters, register and practical exercises |
| BONUS | BONUS – Understanding and Using gather_facts | Python, custom modules, parameters, register and practical exercises |
| - | End-of-Day Exercise 1 | Practical exercise |
| - | End-of-Day Exercise 2 | Final practical exercise |
Suggested Organisation for Practical Exercises
“Simple and effective” topology
ctrl(control node): Ansible + Gitnode1,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.