Publishing Collections¶
Section status: outline
This page is scoped but not yet written in full prose. The sections below define what it will cover.
What It Will Cover¶
ansible-galaxy collection buildproducing a.tar.gzartifact fromgalaxy.yml+ the collection treeansible-galaxy collection publishto public Galaxy, or to a private Automation Hub/Nexus/Artifactory-hosted collection index for internal-only collections- Semantic versioning discipline for a collection other teams depend on
- CI-driven publishing: building and publishing a new collection version automatically on a tagged release
- The full build-from-zero workflow, including a custom module and role packaged together, is in Build a Collection From Zero
Common Mistakes¶
- Publishing a breaking module argument change as a patch version instead of a major version bump.
- No CI validation (
ansible-test sanity) before publishing — see CI/CD and Linting.
Interview Questions¶
- How would you version a collection so consumers can safely pin to a major version?
- What's the difference between publishing to public Galaxy and a private Automation Hub?
Next¶
Continue to Build Your Own.