Overview
This hands-on 2-day training provides a solid foundation in Ansible, covering automation, configuration management, and deployment techniques. You will learn how to write playbooks, manage inventories, and apply best practices for structuring and scaling Ansible projects. By the end of the course, you’ll be able to automate IT processes efficiently and securely.
Day 1 – Ansible Fundamentals
Module 1: Course Overview & Ansible Introduction
- What is Ansible?
- The role of Ansible in automation and DevOps
- Agentless architecture vs. other configuration management tools
- Hands-on: Lab setup (installing Ansible, configuring SSH access)
Module 2: Ansible Architecture & Design
- How Ansible works
- Control node vs. managed nodes
- The Ansible command-line tool (
ansible
, ansible-playbook
, ansible-doc
)
- Configuring Ansible (
ansible.cfg
, inventory files)
- Managing inventories (static vs. dynamic)
- Working with Ansible modules
- Hands-on: Running simple ad-hoc Ansible commands
Module 3: Ansible Playbooks – Introduction
- Introduction to YAML syntax
- Understanding playbook structure (tasks, handlers, plays)
- Variables and facts
- Using Jinja2 for templating
- Playbook creation and execution
- Hands-on: Writing and running basic playbooks
Day 2 – Advanced Ansible & Best Practices
Module 4: Ansible Playbooks – Deep Dive
- Understanding playbook modules (file, service, package, etc.)
- Using
register
to capture command output
- Conditional execution with
when
- Using loops to repeat tasks
- Hands-on: Creating advanced playbooks with conditions and loops
Module 5: Structuring Ansible Playbooks
- Why structure matters
- Using roles to organize playbooks
- Exploring Ansible Galaxy
- Hands-on: Creating reusable roles for efficient automation
Module 6: Troubleshooting & Best Practices
- Common issues and how to debug
- Using
ansible-playbook --check
and --diff
- Log management and error handling
- Best practices for maintainable playbooks
Module 7: Advanced Ansible Techniques
- Includes & imports for modular playbooks
- Using tags to run specific tasks
- Dynamic inventories for cloud environments
- Managing execution with asynchronous, serial, and parallel processing
- Organizing tasks with blocks
- Securing secrets with Ansible Vault
- Task delegation and magic variables
- Hands-on: Implementing advanced Ansible techniques in real-world scenarios
Hands-on Labs & Final Project
- Lab 1: Running ad-hoc commands and managing inventories
- Lab 2: Writing and executing a basic playbook
- Lab 3: Using loops, conditions, and handlers in playbooks
- Lab 4: Creating and managing Ansible roles
- Lab 5: Securing secrets with Ansible Vault
- Final Project: Automating infrastructure configuration with Ansible
Who is this training for?
- System administrators and DevOps engineers
- IT professionals looking to automate tasks
- Developers managing infrastructure with Ansible
Prerequisites
- Basic knowledge of Linux command line
- Familiarity with SSH and YAML (helpful but not required)
Outcomes
By the end of this training, you will:
✅ Understand Ansible’s architecture and core concepts
✅ Automate system administration tasks with playbooks
✅ Use best practices for structuring Ansible projects
✅ Apply advanced techniques like dynamic inventories and task delegation
✅ Gain hands-on experience with real-world automation scenarios
Price
2 pax: 2000 €, 3 pax: 2420 €, 4 pax: 2800, €, 5 pax: 3140, €, 6 pax: 3440, €, 7 pax: 3690,€, 8 pax: 3900 €.
Delivery languages
English or French
Technical environment
- Virtualized infrastructure or cloud environment for labs (access details provided before the course).
- Recommended: Laptop with SSH client and modern browser installed.