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, Collection, 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 14 more developer resources.

42.8/100 developing ▬ flat Agent 20/100 agent aware open core · Apache-2.0 Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessFreemiumSelf serve⚡ Free to try
1 APIs 5 Features 4 Use Cases
AnsibleAutomationCollectionConfiguration ManagementDevOpsInfrastructure as CodeRoles

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Open Source Surface applies to this provider. This product is open source and we read its repository directly, so Open Source Surface carries 10 points of the composite. It is scored from what the repository actually publishes — a security policy, a contribution guide, a release history, a code of conduct — read live from the provider rather than inferred from our own catalog pointers. This facet adds; nothing was taken away to make room for it. An open-source project is not excused from the commercial facets, because exemption would strip it of the points it does earn. If we have the wrong repository, or this product is not open source, say so on your provider repo and we will drop the facet rather than have you publish against it.
Create-or-Update Ergonomics applies to this provider. This API accepts writes, so it carries 10 points of the composite. It is scored from the published contracts themselves: whether a caller can create-or-update in one call, whether the write accepts a key the caller already holds, and whether the response says which branch ran. Without that, every write needs a search-and-branch in front of it, and the first time that check is skipped a duplicate record is created. Scored against the observed mean rather than raw — a provider at the catalog average is unchanged by this facet, not penalised by it.
The six quality facets above are damped to 80 points between them, because the conditional facet above carries the other 20. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 80% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. 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. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

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 9

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

API Collection

OPEN COLLECTION

Scroll for all 9

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 3

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 3

SDKs, sample code, and the tooling you integrate with

Access & Security 3

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Commercial 3

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.
deliveryModel:
  model: open-core
  license: Apache-2.0
  open_source: true
  commercial: true
  callable_host: true
  label: Open core · an OSS project plus a commercial hosted product
  confidence: high
  source:
  - license
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Freemium · Self-serve signup
  confidence: medium
  source:
  - plans
  - authentication
  - security
  generated: '2026-09-03'
  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.23'
url: https://raw.githubusercontent.com/api-evangelist/ansible-roles/refs/heads/main/apis.yml
tags:
- Ansible
- Automation
- Collection
- Configuration Management
- DevOps
- Infrastructure as Code
- Roles
tags_raw:
- 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
  - Collection
  - Community
  - Galaxy
  tags_raw:
  - 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
  - Collection
  - Enterprise
  - Red Hat
  - Roles
  tags_raw:
  - 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:
  - Collection
  tags_raw:
  - 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:
  - User
  tags_raw:
  - 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: Releases
  url: https://github.com/ansible/galaxy/releases
- type: CodeOfConduct
  url: https://github.com/ansible/galaxy/blob/devel/.github/CODE_OF_CONDUCT.md
- type: ContributionGuide
  url: https://github.com/ansible/galaxy/blob/devel/CONTRIBUTING.rst
- type: License
  name: Apache-2.0
  url: https://github.com/ansible/galaxy/blob/devel/LICENSE
- 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.

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/ansible-roles"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/ansible-roles/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/ansible-roles/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.