skillfed

ansible-creator

A CLI tool for scaffolding Ansible Content.

ansible-creator v26.8.0 433.1K downloads/30d#6,705 on PyPI151
Permissive license Apache Active released

What it is and what it does

ansible-creator is a command-line scaffolding tool that generates Ansible project structure and content from templates. It provides two main commands: `init` to create a new Ansible project from scratch, and `add` to insert resources into an existing project. The tool depends on jinja2 for template rendering, pyyaml for configuration handling, and importlib-resources for asset management.

It's designed for developers building Ansible content who want to quickly establish a standardized project layout rather than manually creating directories and boilerplate files. The tool is actively maintained, supports modern Python versions (3.10–3.13), and integrates with the Ansible documentation ecosystem. It has experimental shell completion support via argcomplete.

Use it for:

  • Initialize a new Ansible collection or role project with standard directory structure and configuration files.
  • Add new resources (roles, plugins, modules) to an existing Ansible project without manual setup.
  • Enforce consistent project layout across multiple Ansible content repositories in a team.
  • Integrate with VS Code Ansible Extension for IDE-driven Ansible project creation.
  • Generate boilerplate files and metadata for Ansible content distribution.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A CLI tool that scaffolds new Ansible projects and adds resources to existing ones, generating boilerplate code and project structure from templates.

Yes. The package is actively maintained (release 2 days old), has no known vulnerabilities, low install friction, and permissive licensing. It solves a real problem—reducing boilerplate work for Ansible projects—and is well-integrated with the Ansible ecosystem. Install if you regularly create or extend Ansible projects.

Install

ansible-creator on PyPI

pip

pip install ansible-creator

uv

uv add ansible-creator

poetry

poetry add ansible-creator

Installing ansible-creator

Before you install

Low friction install with three lightweight runtime dependencies (importlib-resources, jinja2, pyyaml). Actively maintained with a release 2 days old and recent commits; supports current Python versions (3.10–3.13).

License in practice

Released under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install ansible-creator
ansible-creator init
ansible-creator add

Requires Python 3.10 or later. Optional: install argcomplete for shell command-line completion.

Verify before relying

  • Whether the tool integrates seamlessly with VS Code Ansible Extension as mentioned in docs.
  • Current state of the 'create' action for scaffolding plugins (described as upcoming on the create branch).
  • Scope and customization options for generated project templates.

Package facts

License Apache (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — importlib-resources, jinja2, pyyaml
Maintenance actively maintained — 2 days since the last release
Last repo commit
First released
Downloads 433,141/month — #6,705 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: ansible_creator-26.8.0-py3-none-any.whl

Keywords: ansible

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Code GeneratorsTopic :: Utilities

Tags

ansible project scaffoldingansible boilerplate generatoransible content initializationansible project templatecli code generator ansibleansible project setup tool
ansiblescaffoldingcode-generation

More Utilities packages