role-developer

Generate Red Hat CoP-compliant Ansible role scaffolds with tests and documentation.

5|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/stoleas/ansible-skills --skill role-developer-stoleas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-developer
Source: https://github.com/stoleas/ansible-skills/tree/main/skills/role-developer
Command: npx skills add https://github.com/stoleas/ansible-skills --skill role-developer-stoleas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Role development in Ansible is a complex, error-prone process when teams fail to consistently enforce Red Hat Communities of Practice standards.

Core Features & Use Cases

  • Generates complete role skeletons that include defaults, tasks, handlers, variables, templates, and metadata, all aligned with CoP practices.
  • Enforces naming conventions (snake_case, role-prefix, no dashes) and provides platform-specific variable handling for multi-OS support.
  • Includes Molecule tests, ansible-lint configuration, and documentation scaffolding to ensure idempotent, check-mode compatible roles.
  • Use case: you are starting a new Ansible role and need a ready-to-use, production-grade structure that passes lint and tests across supported platforms.

Quick Start

Create a new role by providing the role name, and let this skill scaffold a complete CoP-compliant role structure.

Frequently Asked Questions about role-developer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold an Ansible role that follows Red Hat CoP standards?

To scaffold a Red Hat CoP-compliant Ansible role, you provide a role name to generate a complete skeleton. This includes defaults, tasks, handlers, variables, templates, and metadata aligned with Communities of Practice practices.

What is included in a production-ready Ansible role structure?

A production-ready Ansible role structure includes defaults, tasks, handlers, variables, templates, metadata, Molecule tests, ansible-lint configuration, and documentation scaffolding to ensure idempotency and check-mode compatibility.

Can I use Molecule and ansible-lint to test multi-OS Ansible roles?

Yes, Molecule and ansible-lint are integrated directly into the role scaffold. This combination enforces platform-specific variable handling for multi-OS support and validates idempotency testing across supported platforms.

What's the best way to enforce naming conventions in Ansible role development?

The best way to enforce naming conventions is using a CoP-compliant scaffold that automatically applies snake_case and role-prefix rules without dashes. This ensures consistent structure across all new roles.

Does this Ansible role scaffold include argument_specs validation?

Yes, the generated Ansible role scaffold includes argument_specs validation. This satisfies CoP-aligned structure requirements and ensures variables are properly validated before execution.

When do I need to generate a complete Ansible role skeleton?

You need to generate a complete Ansible role skeleton when starting a new role from scratch that requires a ready-to-use, production-grade structure. This ensures it passes lint and tests across supported platforms immediately.