Registry / devops / ansible-creator

ansible-creator

JSON →
library26.4.3pypypiunverified

A CLI tool for scaffolding Ansible Content (roles, playbooks, collections, etc.). Currently at version 26.4.2, with frequent releases following Ansible's release cadence.

pip install ansible-creator
INSTALL
IMPORT
SIG · ANSIBLE-CREATOR
A
ansible-creator
devopspythonv26.4.3
Install
1.9s avg
Import
Disk
20MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v26.4.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 1.95s
py 3.11
✓ —
✓ 1.95s
py 3.12
✓ —
✓ 1.8s
py 3.13
✓ —
✓ 1.85s
py 3.9
1/2 runs
1/2 runs
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnsibleCreator
from ansible_creator import AnsibleCreator
from ansible_creator import AnsibleCreator

Initialize AnsibeCreator and scaffold a role.

from ansible_creator.cli import AnsibleCreator import os # Initialize the creator (uses environment vars for config) creator = AnsibleCreator() # Scaffold a new Ansible role creator.run(['init', '--type', 'role', '--path', './my_role'])
ansible-creator --version
Debug
Known issues
breakingIn version 25.x, the CLI entry point was moved from 'ansible-creator' (with hyphen) to 'ansible-creator' (underscore is not used). Scripts relying on the old command name may fail.
fix
Update scripts to use 'ansible-creator' command.
affects: <25.0.0
breakingThe init command required '--type' argument is mandatory; omitting it raises a TypeError.
fix
Always specify --type (role, playbook, collection, etc.).
affects: All
deprecatedThe '--output' flag has been deprecated in favor of '--path'. Using --output will still work but emits a warning and may be removed in future.
fix
Replace --output with --path.
affects: >=25.0.0
Upgrade
Version history
26.4.3latest on PyPI · released Apr 30, 2026
Audit
Dependencies
ansible-coreoptionalRequired for running generated content.
Agent activity
40 hits · last 30 days
node
32
OpenAI (training)
1
Resources
ansible-creator — pip install ansible-creator · libregistry