A Collection is new distribution format to package and deliver all types of Ansible content. It is introduced in Ansible v2.8+ as a tech preview feature.
- Ansible 2.8+
- Mazer (It is a new command-line tool for managing Ansible content)
collection_name/
βββ README.md
βββ galaxy.yml
βββ plugins
β ββ modules/
β ββ module_utils/
β ββ inventory/
β ββ lookup/
β ββ callback/
βββ tests/
βββ playbooks/
βββ roles/
More details at here.
- Create a directory with the name same as Galaxy Namespace name
# mkdir namespace && cd namespace
- Create another directory with required name inside
namespacedirectory and this will be theCollectiondirectory.
# mkdir collection_name && collection_name
NOTE: Namespace and Collection name may only contain alphanumeric characters and underscores. Additionally the namespace cannot start with underscores or numbers and cannot contain consecutive underscores.