Ansible & Configuration
Collections
Explain what an Ansible collection is and why fully qualified names and pinned versions make a run repeatable. A collection bundles roles, modules and plugins under one name and version.
What you will be able to do
- Explain how a fully qualified collection name identifies one module.
- Decide how to pin and upgrade collections so every runner installs the same content.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Ansible & Configuration
- Vault secretsIntermediate · 5 min
Explain how Ansible Vault encrypts files and single values so they can live in version control. Vault protects data at rest, and it stops protecting once a run decrypts…
- Role structureAdvanced · 4 min
Explain the standard Ansible role layout and where each kind of content belongs. Defaults hold values that callers may override, and vars hold values the role must…
- Tags and limitsAdvanced · 4 min
Explain how --limit filters hosts and tags filter tasks, and why each one can select more or less than expected. Listing hosts and tasks before a run shows the real…
- Diff modeAdvanced · 4 min
Explain how check mode and diff mode show the file changes a run would make, without writing them. Reviewing one host's diff before a wider rollout catches surprises…
- Rolling updatesAdvanced · 4 min
Roll a change through an Ansible fleet in batches with serial, so part of the service keeps answering while each group updates, and a drain step keeps traffic away from…
- serial batchesAdvanced · 4 min
Read serial values, percentages and failure thresholds together, so you know which hosts have already changed when a play stops during a rollout, and how percentage…