Ansible Roles website screenshot

Ansible Roles

A curated collection of APIs and resources for discovering, managing, and consuming Ansible roles — the primary unit of reusable automation content in the Ansible ecosystem. Covers the Galaxy and Automation Hub APIs for role discovery, download, and publishing, as well as the Ansible Collections framework that has extended the role model into full-featured content packages.

Ansible Roles publishes 7 APIs on the APIs.io network, including Ansible Galaxy Roles & Collections API API, Collections API, Imports API, and 4 more. Tagged areas include Ansible, Automation, Collections, Configuration Management, and DevOps.

The Ansible Roles catalog on APIs.io includes 1 JSON-LD context and 1 Spectral governance ruleset.

Ansible Roles’ developer surface includes authentication, getting-started guide, and 10 more developer resources.

51.5/100 developing ▬ flat Agent 31/100 agent aware Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreemiumSelf serve⚡ Free to try
10 APIs 5 Features 4 Use Cases
AnsibleAutomationCollectionsConfiguration ManagementDevOpsInfrastructure As CodeRoles

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 51.5/100 · developing
Contract Quality 14.6 / 25
Developer Ergonomics 4.3 / 20
Commercial Clarity 12.1 / 20
Operational Transparency 4.8 / 13
Governance 8.3 / 12
Discoverability 7.4 / 10
Agent readiness — 31/100 · agent aware
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 10 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/ansible-roles: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 10

Individual APIs this provider publishes, each with its own machine-readable definition.

Ansible Galaxy Roles API

The Ansible Galaxy v1 and v2 REST API enables searching, discovering, and downloading Ansible roles contributed by the community. Supports searching roles by keyword, author, or...

Ansible Galaxy Collections API

The Ansible Galaxy v3 API provides enhanced support for Ansible collections — the modern packaging format that bundles roles, modules, plugins, and documentation together. Suppo...

Ansible Automation Hub Roles API

The Red Hat Ansible Automation Hub provides certified and partner-validated Ansible collections and roles for enterprise use. The API enables access to Red Hat-certified content...

Ansible Roles Ansible Galaxy Roles & Collections API API

The Ansible Galaxy Roles & Collections API API from Ansible Roles — 2 operation(s) for ansible galaxy roles & collections api.

Ansible Roles Collections API

Modern v3 collections (Galaxy NG / Pulp).

Ansible Roles Imports API

Track role import job status.

Ansible Roles Namespaces API

Legacy v1 namespaces (mapped from GitHub orgs/users).

Ansible Roles Roles API

Legacy v1 community roles API.

Ansible Roles Sync API

Trigger legacy content sync.

Ansible Roles Users API

Legacy v1 users API.

Scroll for all 10

Open Collections 1

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Ansible Roles Rate Limits

5 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Features 5

Notable capabilities this provider offers.

Role Search and Discovery

Search Galaxy for community-contributed roles by keyword, author, namespace, or tag to find reusable automation content.

Collection Packaging

Bundle roles, modules, plugins, and documentation into distributable collection packages versioned and published via the Galaxy API.

Version Management

Access specific versions of roles and collections, enabling pinned dependency management in Ansible projects.

Certified Content

Access Red Hat-certified and partner-validated Ansible collections with enterprise-grade quality assurance via Automation Hub.

Namespace Management

Manage author namespaces on Galaxy to publish and maintain role and collection content under a consistent identity.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Ansible Roles Context

4 classes · 16 properties

JSON-LD

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

Ansible Roles API Rules

5 rules · 4 warnings 1 info

SPECTRAL

JSON Schema 2

Standalone JSON Schema definitions for this provider's data models.

Collection

13 properties

JSON SCHEMA

Role

15 properties

JSON SCHEMA

JSON Structure 2

JSON Structure definitions describing this provider's data shapes.

Ansible Roles Collection Structure

13 properties

JSON STRUCTURE

Ansible Roles Role Structure

15 properties

JSON STRUCTURE

Examples 2

Example request and response payloads for these APIs.

Ansible Roles Role Example

15 fields

EXAMPLE

Security Posture 2

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Ansible Roles Authentication

apiKey · 1 scheme

SECURITY

Ansible Roles Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Ansible Roles Agentic Access

18 operations · 3 acting

18 operations · 3 acting

AGENTIC

Use Cases 4

What developers build with this provider.

Role Reuse Across Projects

Discover and install community roles from Galaxy to avoid reinventing automation logic for common tasks like nginx, MySQL, or Kubernetes setup.

Certified Enterprise Automation

Use Red Hat-certified collections from Automation Hub in production environments where quality assurance and support are required.

Private Content Distribution

Publish internal roles and collections to a private Automation Hub instance for controlled distribution within an organization.

Dependency Management

Pin role and collection versions in requirements.yml files and install them via the Galaxy API in CI/CD pipelines.

Integrations 3

Pre-built integrations with other platforms and tools.

Ansible Playbooks

Use roles discovered via the Galaxy API directly in Ansible playbooks with the roles directive or include_role task.

Ansible Automation Platform

Synchronize collections from Galaxy or Automation Hub into Ansible Automation Platform for use in job templates.

Requirements Files

Define role and collection dependencies in requirements.yml and install them automatically via ansible-galaxy CLI using the API.

Resources

Get Started 1

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Design & Contract 1

Pagination, idempotency, versioning, errors, and events

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 3

Authentication, authorization, and security posture

Commercial 2

Pricing, plans, and the legal terms of use

Source (apis.yml)

apis.yml Raw ↑
name: Ansible Roles
description: A curated collection of APIs and resources for discovering, managing, and consuming Ansible roles — the primary
  unit of reusable automation content in the Ansible ecosystem. Covers the Galaxy and Automation Hub APIs for role discovery,
  download, and publishing, as well as the Ansible Collections framework that has extended the role model into full-featured
  content packages.
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Freemium · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/ansible-roles.png
created: '2024-01-01'
modified: '2026-04-19'
specificationVersion: '0.16'
url: https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/apis.yml
tags:
- Ansible
- Automation
- Collections
- Configuration Management
- DevOps
- Infrastructure As Code
- Roles
apis:
- name: Ansible Galaxy Roles API
  description: The Ansible Galaxy v1 and v2 REST API enables searching, discovering, and downloading Ansible roles contributed
    by the community. Supports searching roles by keyword, author, or tag; retrieving role details and version history; and
    downloading specific role versions for use in playbooks.
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Ansible
  - Community
  - Galaxy
  - Roles
  properties:
  - type: Documentation
    url: https://galaxy.ansible.com/docs/
  - type: APIReference
    url: https://galaxy.ansible.com/api/v1/
  - type: GettingStarted
    url: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html
  contact:
  - FN: Ansible Galaxy Team
    url: https://github.com/ansible/galaxy/issues
- name: Ansible Galaxy Collections API
  description: The Ansible Galaxy v3 API provides enhanced support for Ansible collections — the modern packaging format that
    bundles roles, modules, plugins, and documentation together. Supports listing, searching, downloading, and versioning
    of published collections from the community namespace on Galaxy.
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v3/
  tags:
  - Ansible
  - Collections
  - Community
  - Galaxy
  properties:
  - type: Documentation
    url: https://galaxy.ansible.com/docs/
  - type: APIReference
    url: https://galaxy.ansible.com/api/v3/
  - type: GettingStarted
    url: https://docs.ansible.com/ansible/latest/collections/index.html
  contact:
  - FN: Ansible Galaxy Team
    url: https://github.com/ansible/galaxy/issues
- name: Ansible Automation Hub Roles API
  description: The Red Hat Ansible Automation Hub provides certified and partner-validated Ansible collections and roles for
    enterprise use. The API enables access to Red Hat-certified content with SLA-backed quality, partner-certified content,
    and community content synced from Galaxy in supported namespaces.
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://console.redhat.com/ansible/automation-hub
  baseURL: https://console.redhat.com/api/automation-hub/v3/
  tags:
  - Ansible
  - Certified Content
  - Collections
  - Enterprise
  - Red Hat
  - Roles
  properties:
  - type: Documentation
    url: https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/
  - type: APIReference
    url: https://console.redhat.com/api/automation-hub/v3/
  - type: Portal
    url: https://console.redhat.com/ansible/automation-hub
  contact:
  - FN: Red Hat Support
    url: https://access.redhat.com/support
- aid: ansible-roles:ansible-roles-ansible-galaxy-roles-collections-api-api
  name: Ansible Roles Ansible Galaxy Roles & Collections API API
  description: The Ansible Galaxy Roles & Collections API API from Ansible Roles — 2 operation(s) for ansible galaxy roles
    & collections api.
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Ansible Galaxy Roles & Collections API
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-ansible-galaxy-roles-collections-api-api-openapi.yml
- aid: ansible-roles:ansible-roles-collections-api
  name: Ansible Roles Collections API
  description: Modern v3 collections (Galaxy NG / Pulp).
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Collections
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-collections-api-openapi.yml
- aid: ansible-roles:ansible-roles-imports-api
  name: Ansible Roles Imports API
  description: Track role import job status.
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Imports
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-imports-api-openapi.yml
- aid: ansible-roles:ansible-roles-namespaces-api
  name: Ansible Roles Namespaces API
  description: Legacy v1 namespaces (mapped from GitHub orgs/users).
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Namespaces
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-namespaces-api-openapi.yml
- aid: ansible-roles:ansible-roles-roles-api
  name: Ansible Roles Roles API
  description: Legacy v1 community roles API.
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Roles
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-roles-api-openapi.yml
- aid: ansible-roles:ansible-roles-sync-api
  name: Ansible Roles Sync API
  description: Trigger legacy content sync.
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Sync
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-sync-api-openapi.yml
- aid: ansible-roles:ansible-roles-users-api
  name: Ansible Roles Users API
  description: Legacy v1 users API.
  humanURL: https://galaxy.ansible.com
  baseURL: https://galaxy.ansible.com/api/v1/
  tags:
  - Users
  properties:
  - type: OpenAPI
    url: openapi/ansible-roles-users-api-openapi.yml
maintainers:
- FN: Kin Lane
  email: info@apievangelist.com
  X: apievangelist
  url: https://apievangelist.com
common:
- type: AgenticAccess
  url: agentic-access/ansible-roles-agentic-access.yml
- type: DomainSecurity
  url: security/ansible-roles-domain-security.yml
- type: Authentication
  url: authentication/ansible-roles-authentication.yml
- type: GettingStarted
  url: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html
- type: Authentication
  url: https://galaxy.ansible.com/docs/authentication/
- type: TermsOfService
  url: https://www.redhat.com/en/about/terms-use
- type: PrivacyPolicy
  url: https://www.redhat.com/en/about/privacy-policy
- type: GitHubRepository
  url: https://github.com/ansible/galaxy
- type: GitHubOrganization
  url: https://github.com/ansible
- type: JSONSchema
  url: https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/json-schema/ansible-roles-role-schema.json
  title: Role Schema
- type: JSONSchema
  url: https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/json-schema/ansible-roles-collection-schema.json
  title: Collection Schema
- type: Vocabulary
  url: https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/vocabulary/ansible-roles-vocabulary.yaml
- type: Features
  data:
  - name: Role Search and Discovery
    description: Search Galaxy for community-contributed roles by keyword, author, namespace, or tag to find reusable automation
      content.
  - name: Collection Packaging
    description: Bundle roles, modules, plugins, and documentation into distributable collection packages versioned and published
      via the Galaxy API.
  - name: Version Management
    description: Access specific versions of roles and collections, enabling pinned dependency management in Ansible projects.
  - name: Certified Content
    description: Access Red Hat-certified and partner-validated Ansible collections with enterprise-grade quality assurance
      via Automation Hub.
  - name: Namespace Management
    description: Manage author namespaces on Galaxy to publish and maintain role and collection content under a consistent
      identity.
- type: UseCases
  data:
  - name: Role Reuse Across Projects
    description: Discover and install community roles from Galaxy to avoid reinventing automation logic for common tasks like
      nginx, MySQL, or Kubernetes setup.
  - name: Certified Enterprise Automation
    description: Use Red Hat-certified collections from Automation Hub in production environments where quality assurance
      and support are required.
  - name: Private Content Distribution
    description: Publish internal roles and collections to a private Automation Hub instance for controlled distribution within
      an organization.
  - name: Dependency Management
    description: Pin role and collection versions in requirements.yml files and install them via the Galaxy API in CI/CD pipelines.
- type: Integrations
  data:
  - name: Ansible Playbooks
    description: Use roles discovered via the Galaxy API directly in Ansible playbooks with the roles directive or include_role
      task.
  - name: Ansible Automation Platform
    description: Synchronize collections from Galaxy or Automation Hub into Ansible Automation Platform for use in job templates.
  - name: Requirements Files
    description: Define role and collection dependencies in requirements.yml and install them automatically via ansible-galaxy
      CLI using the API.