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.
More on Project Structure and Design
What does a production Ansible repository look like?BeginnerMonorepo or separate repos for roles? How do you decide?IntermediateHow do you structure inventories for dev, stage and prod?BeginnerHow do you prevent someone from running a playbook against production by accident?IntermediateWhat does "thin playbooks, fat roles" mean?IntermediateWhat makes a well-designed role?Intermediate