Interview Prep/Ansible/Project Structure and Design

When should you organise content as collections rather than roles in one repo?

AdvancedProductionProject Structure and Design
Answer

When you have enough shared content for several teams, or when you ship custom modules, filters or inventory plugins. A company collection such as acme.platform bundles roles and plugins under one version and namespace, is published to a private Automation Hub or Galaxy, and tested with ansible-test.

For a single team with a dozen roles, a plain roles/ directory is simpler. The collection adds build, release and versioning overhead, which only pays off with consumers beyond the repo.

All Ansible questions Roadmap: Ansible

More on Project Structure and Design