$npx skillfedfor your agent

ansible-runner

"Consistent Ansible Python API and CLI with container and process isolation runtime capabilities"

Worth itPyPI Python ModulesReleased Mar 20263.1M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ansible_runner-2.4.3-py3-none-any.whl
v2.4.3 · released 2026-03-16 · Python >=3.9 · 5 runtime deps: pexpect, packaging, python-daemon, pyyaml, importlib-metadata

Yes. Ansible Runner is production-stable, actively maintained, and has low install friction. It solves a real problem—providing a clean Python interface to Ansible—and is well-suited for teams embedding Ansible into applications or orchestration systems. No known vulnerabilities. The permissive Apache 2.0 license poses no restriction.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; Ansible itself must be installed separately for playbook execution.
  • Low install friction with five runtime dependencies (pexpect, packaging, python-daemon, pyyaml, importlib-metadata).
  • Actively maintained as of 2026-08-14 with regular releases; repository shows 1081 stars and is not archived.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License, Version 2.0 (permissive). No restrictions on commercial or private use; you may modify and distribute under the same license terms.

last release 2026-03-16 (151 days) · last repo commit 2026-08-14 · 1,081 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,120,832 downloads/mo, #2,745 on PyPI

Verify before relying

pip install ansible-runner

from ansible_runner import run

r = run(private_data_dir='/tmp/demo', playbook='site.yml')
print(r.status, r.rc)
  • Whether the package handles Ansible version compatibility automatically or requires manual version management.
  • Performance characteristics when running large playbooks or many concurrent tasks.
  • Container runtime requirements and supported container backends beyond process isolation.
Same gist for agents: .md · .json

What it is and what it does

Ansible Runner is a Python library and command-line tool that abstracts direct interaction with Ansible, letting you run playbooks and ad-hoc commands from Python code or shell scripts with a consistent, stable interface. It handles process isolation and can work with container runtimes, making it useful for embedding Ansible automation into larger systems without tight coupling to Ansible's internal APIs.

The package depends on pexpect for process interaction, python-daemon for background execution, pyyaml for configuration parsing, and packaging for version handling. It targets developers, system administrators, and IT teams who need to integrate Ansible automation into applications or orchestration workflows. The library is production-stable and actively maintained, supporting Python 3.9 through 3.12.

Use it for

  • Embed Ansible playbook execution into a Python application or REST API without direct Ansible API calls.
  • Run infrastructure automation tasks from a CI/CD pipeline with isolated process execution and consistent status reporting.
  • Build a custom orchestration layer that coordinates multiple Ansible runs with container or process boundaries.
  • Automate system administration tasks from a Python script with structured output and error handling.
  • Execute Ansible playbooks in a containerized environment as part of a larger automation platform.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Ansible Runner is production-stable, actively maintained, and has low install friction. It solves a real problem—providing a clean Python interface to Ansible—and is well-suited for teams embedding Ansible into applications or orchestration systems. No known vulnerabilities. The permissive Apache 2.0 license poses no restriction.

Install

ansible-runner on PyPI

Before you install

Low install friction with five runtime dependencies (pexpect, packaging, python-daemon, pyyaml, importlib-metadata). Actively maintained as of 2026-08-14 with regular releases; repository shows 1081 stars and is not archived.

Requires Python 3.9 or later; Ansible itself must be installed separately for playbook execution.

License in practice

Licensed under Apache Software License, Version 2.0 (permissive). No restrictions on commercial or private use; you may modify and distribute under the same license terms.

Quickstart

pip install ansible-runner

from ansible_runner import run

r = run(private_data_dir='/tmp/demo', playbook='site.yml')
print(r.status, r.rc)

Verify before relying

  • Whether the package handles Ansible version compatibility automatically or requires manual version management.
  • Performance characteristics when running large playbooks or many concurrent tasks.
  • Container runtime requirements and supported container backends beyond process isolation.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
pexpectpackagingpython-daemonpyyamlimportlib-metadata
MaintenanceActively maintained 151 days since the last release
Last repo commit
First released
Downloads3,120,832 / month, #2,745 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Systems AdministrationTopic :: Utilities

Evidence: ansible_runner-2.4.3-py3-none-any.whl

Tags

Capabilities
ansible execution wrapperrun ansible playbooks programmaticallyansible python apiansible process isolationansible container interfaceansible cli abstractionansible automation framework
Topics
infrastructure-automationansible-integrationprocess-isolation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ansible execution wrapper”

  • ansible-runnerAnsible Runner provides a Python library and CLI tool that wraps…
  • ansible-builderAnsible Builder automates the creation of Ansible execution…
  • araARA Records Ansible records and reports on Ansible playbook execution…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also ansible-builder · ansible-base · pyinfra · ansible · ansible-core · ansible-navigator · ara · ansible-lint · ansible-dev-environment · asv-runner