ansible-scaffold-role

Scaffold Ansible roles with Red Hat CoP-compliant directory structure and files.

27|3|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/leogallego/claude-ansible-skills --skill ansible-scaffold-role
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ansible-scaffold-role
Source: https://github.com/leogallego/claude-ansible-skills/tree/main/ansible-scaffold-role/skills/ansible-scaffold-role
Command: npx skills add https://github.com/leogallego/claude-ansible-skills --skill ansible-scaffold-role

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of a fully CoP-compliant Ansible role, removing manual setup and ensuring best practices from the start.

Core Features & Use Cases

  • Automated role scaffolding that creates the standard directory layout, starter files, and sensible defaults
  • Optional integration with ansible-creator for collection-aware skeletons
  • Guidance for variables, tasks, handlers, meta, and documentation to speed up onboarding

Quick Start

Create a new role name and run the scaffold to generate a complete, CoP-compliant role structure.

Frequently Asked Questions about ansible-scaffold-role

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

FAQPage Schema
How do I scaffold a new Ansible role that complies with Red Hat CoP rules?

Scaffolding a CoP-compliant Ansible role requires generating a standard directory layout with defaults, vars, tasks, handlers, and meta structure. This skill automates that process, enforcing naming conventions and FQCN usage to ensure best practices from the start.

What is the best way to bootstrap an Ansible role inside a collection?

The best way to bootstrap an Ansible role inside a collection is using an automated scaffolder. This skill optionally integrates with ansible-creator to generate a collection-aware skeleton that satisfies directory layout and terminology requirements.

Does ansible-creator work with scaffolding standalone Ansible roles?

Yes, ansible-creator can be integrated to guide the scaffolding of standalone Ansible roles. This skill uses it to provide collection-aware skeletons while ensuring the generated structure covers all required meta and documentation files.

What structure does a fully compliant Ansible role need for defaults, vars, and handlers?

A compliant Ansible role structure needs specific directories for defaults, vars, tasks, handlers, and meta. This skill automatically scaffolds these directories along with the necessary file templates to speed up onboarding and enforce best practices.

Can I enforce FQCN usage and naming conventions when creating an Ansible role?

You can enforce FQCN usage and naming conventions during role creation by using an automated scaffolder. This skill ensures the generated role files strictly follow Red Hat CoP rules for terminology and compatibility without manual setup.