Skip to content

Ompragash/ansible-collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Collections

What is collection?

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.

Requirements

  • Ansible 2.8+
  • Mazer (It is a new command-line tool for managing Ansible content)

Collection Data Structure

collection_name/
├── README.md
├── galaxy.yml
├── plugins
│   ├─ modules/
│   ├─ module_utils/
│   ├─ inventory/
│   ├─ lookup/
│   └─ callback/
├── tests/
├── playbooks/
└── roles/

More details at here.

Create, Build and Upload Collections

Step 1: Creating Collection

# mkdir namespace && cd namespace
  • Create another directory with required name inside namespace directory and this will be the Collection directory.
# 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.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published