Skill · Configuration management · Configure a fleet with Ansible
Structure Ansible into roles and collections
Split a long playbook into reusable roles with the standard layout, package them in collections and test them with Molecule.
Start lesson 1The Configuration management domain
- 14 lessons
- ~13 h 40 of reading
- 11 quizzes
- 0 proof lab
Lessons
How to learn it
14 lessons, about ~13 h 40, in program order. Each lesson ends with its quiz.
The program
14 lessons · ~13 h 40
Part 1 · Écrire ses premiers rôles (in French) 7 lessons · ~7 h 00
- 1Écrire ses premiers rôles (in French)· 5 min
- 2Découvrir les rôles (in French)· 40 min
- 3Structure standard (in French)· 55 min
- 4Créer son premier rôle (in French)· 80 min
- 5Variables : defaults vs vars (in French)· 70 min
- 6Handlers et meta (in French)· 80 min
- 7argument_specs.yml (in French)· 90 min
Part 2 · Collections Ansible (in French) 7 lessons · ~6 h 40
- 8Collections Ansible (in French)· 5 min
- 9Découvrir une collection (in French)· 80 min
- 10requirements.yml multi-sources (in French)· 75 min
- 11Créer une collection custom (in French)· 100 min
- 12Pipeline CI matrice (in French)· 90 min
- 13Migration rôle → collection (in French)· 35 min
- 14Quiz Collections (in French)· 15 min
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
11 quizzes
At the end of the lessons: passed at 70%, they confirm the skill.
Practice
9 guided labs
- CI matrix for a collection: ansible-core x Python
- Build your own collection with a custom Python module
- Explore Ansible collections: FQCN and structure
- Migrate a standalone role to a collection
- requirements.yml: multi-source install with GPG signatures
- argument_specs: validate a role's input variables
- Create your first role with ansible-galaxy role init
- Role handlers and meta: notify and galaxy_info
- Role variables: defaults/ vs vars/ and precedence
Proof
No proof
Neither a challenge nor a mission with a proof yet.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
- Linux Administrator
- DevSecOps Engineer
- RHCE (EX294, Red Hat Enterprise Linux 9)
In red: the certification it prepares for.
Taught by
Same block · Configure a fleet with Ansible
- Install Ansible and configure its control node
- Prepare managed nodes and run ad hoc commands
- Describe a fleet in a static Ansible inventory: groups, variables and patterns
- Write a readable, idempotent Ansible playbook
- Parameterise an Ansible playbook: variables, facts, precedence and Jinja2 filters
- Protect the secrets of an Ansible project: Ansible Vault and external vaults
- Troubleshoot and run Ansible in production: verbosity, debugger, idempotence and ansible-pull