collections

Install, verify, list, and scaffold Ansible collections with version pinning via requirements.yml.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill collections-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: collections
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/ansible/collections
Command: npx skills add https://github.com/theslashdojo/dojo --skill collections-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Ansible collections are essential units for extending modules, plugins, and playbooks. This skill provides a deterministic workflow to install, verify, list, and scaffold those collections on the control node, ensuring required content is present before execution.

Core Features & Use Cases

  • Install and pin specific collection versions using a requirements.yml file to guarantee reproducible environments.
  • Verify installed collections and list the current state to prevent drift in long-running runners and CI pipelines.
  • Scaffold new collections to prepare namespaces for distribution and reuse across projects.

Quick Start

Install, pin, verify, and scaffold Ansible collections on the control node.

Frequently Asked Questions about collections

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

FAQPage Schema
How do I pin Ansible collection versions for reproducible CI pipelines?

To pin Ansible collection versions, you define the required modules and versions in a requirements.yml file and execute the installation workflow. This guarantees a deterministic state by ensuring the control node only installs the exact collection versions specified before playbook execution.

What is the best way to manage Ansible collections on a control node?

Managing Ansible collections on a control node is best handled through a script-driven workflow that installs, lists, verifies, and scaffolds external modules. This approach ensures required content is present and prevents state drift in long-running runners and CI pipelines.

Can I verify installed Ansible collections to prevent state drift in CI?

Yes, you can verify installed Ansible collections and list the current state on the control node. This verification process prevents drift in long-running runners and CI pipelines by checking that the active environment matches the pinned requirements.

How do I scaffold new Ansible collections for distribution and reuse?

Scaffolding new Ansible collections involves using the provided script workflow to prepare namespaces for distribution. This creates the necessary structural foundation to reuse and share external modules, plugins, and playbooks across multiple projects.

Does this workflow require ansible-galaxy for installing collections?

The workflow applies to playbooks and CI environments that rely on external modules and requires a requirements.yml file for deterministic state. It automates the management of Ansible collections on the control node using a script-driven approach.