Home
Ansible Roles
Ansible Roles Collection Structure
Ansible Roles Collection Structure
An Ansible collection — a distributable package containing roles, modules, plugins, and documentation.
Type: object
Properties: 13
Required: 3
Ansible Automation Collections Configuration Management DevOps Infrastructure As Code Roles
Collection is a JSON Structure definition published by Ansible Roles, describing 13 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
namespace
name
version
description
download_count
certified
license
tags
requires_ansible
repository
documentation
created_at
updated_at
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/json-structure/ansible-roles-collection-structure.json",
"description": "An Ansible collection \u2014 a distributable package containing roles, modules, plugins, and documentation.",
"type": "object",
"properties": {
"namespace": {
"type": "string",
"description": "The Galaxy namespace for this collection.",
"example": "community"
},
"name": {
"type": "string",
"description": "The collection name.",
"example": "general"
},
"version": {
"type": "string",
"description": "The current latest version of the collection.",
"example": "8.6.0"
},
"description": {
"type": "string",
"description": "Short description of what the collection provides.",
"example": "A collection of general-purpose Ansible modules and roles."
},
"download_count": {
"type": "int32",
"description": "Total download count for this collection.",
"example": 5000000
},
"certified": {
"type": "boolean",
"description": "Whether this collection is Red Hat certified.",
"example": false
},
"license": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of SPDX license identifiers.",
"example": [
"GPL-3.0-or-later"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tags categorizing the collection content.",
"example": [
"networking",
"cloud",
"linux"
]
},
"requires_ansible": {
"type": "string",
"description": "Minimum Ansible version required.",
"example": ">=2.14.0"
},
"repository": {
"type": "uri",
"description": "Source code repository URL.",
"example": "https://github.com/ansible-collections/community.general"
},
"documentation": {
"type": "uri",
"description": "Link to collection documentation.",
"example": "https://docs.ansible.com/ansible/latest/collections/community/general/"
},
"created_at": {
"type": "datetime",
"description": "When this collection was first published.",
"example": "2020-01-01T00:00:00Z"
},
"updated_at": {
"type": "datetime",
"description": "When this collection was last updated.",
"example": "2026-04-01T00:00:00Z"
}
},
"required": [
"namespace",
"name",
"version"
],
"name": "Collection"
}