Ansible collection
A distribution package of Ansible content, such as modules, plugins, roles and documentation, published under a namespace.
In more detail
A collection is named namespace.collection, as in ansible.posix or amazon.aws, and each item in it is addressed by its fully qualified collection name. ansible-core ships only ansible.builtin; others are installed with ansible-galaxy, ideally from a requirements.yml with pinned versions.
Related terms
- namespace — A name prefix that groups related names under one owner, so the same short name from different owners does not collide.
- fully qualified collection name — The full name of a module, plugin or role including its collection, such as ansible.builtin.copy rather than just copy.
- ansible.builtin — The collection of core modules and plugins that ships inside ansible-core, such as copy, file, debug and command.
- Ansible Galaxy — The public online hub for sharing Ansible roles and collections, and the ansible-galaxy command that installs from it.
- requirements.yml — A YAML file listing the collections and roles a project depends on, with versions, for ansible-galaxy to install.
Taught in
- Ansible Architecture And The Control Node — Ansible Configuration Management at Scale
- Installing Ansible — Ansible Configuration Management at Scale
- Modules And Idempotency — Ansible Configuration Management at Scale
- Writing A Role — Ansible Configuration Management at Scale
- Using Collections — Ansible Configuration Management at Scale
- Ansible Galaxy — Ansible Configuration Management at Scale
- Exam Strategy: The First Fifteen Minutes And ansible-doc — RHCE in Ansible (EX294): Automate Red Hat Systems
- ansible.cfg: Which File Wins, And The Settings That Matter — RHCE in Ansible (EX294): Automate Red Hat Systems
- ansible-navigator: The Settings File The Exam Reads — RHCE in Ansible (EX294): Automate Red Hat Systems
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- Git And VS Code: Clone, Commit, Push, And The Dev Container — RHCE in Ansible (EX294): Automate Red Hat Systems
- Roles: The Directory Ansible Expects, Defaults And Handlers — RHCE in Ansible (EX294): Automate Red Hat Systems
- requirements.yml: Installing Roles And Collections — RHCE in Ansible (EX294): Automate Red Hat Systems
- RHEL System Roles: timesync And selinux From A Collection — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: Storage Only Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 2: Real Machines And The Patterns That Fail — RHCE in Ansible (EX294): Automate Red Hat Systems