Interview Prep/Ansible/Roles, Collections and Galaxy

What is an Ansible collection?

BeginnerConceptRoles, Collections and Galaxy
Answer

A collection is a distribution format that bundles modules, plugins, roles, playbooks and documentation under a namespace.name, such as amazon.aws or community.docker. It is versioned and installed independently of ansible-core, so cloud modules can release faster than the engine.

You reference content by FQCN, for example community.docker.docker_container, and install with ansible-galaxy collection install.

All Ansible questions Roadmap: Ansible

More on Roles, Collections and Galaxy