Skip to main content

Ansibug

Test workflow codecov PyPI version License

The core component of the Ansible Debug Adapter Protocol used for debugging Ansible playbooks. See more documentation for ansibug at https://jborean93.github.io/ansibug/.

Please note this library should be considered a preview. New features and behaviour changes should be expected during this preview period.

Debug Adapter

This library combined with a Debug Adapter Protocol client, like Visual Studio Code, can be used to run and debug Ansible playbook's interactively. It supports basic features like stepping in, over, and out of tasks in a play with support for getting and setting variables at runtime.

ansible_example

More information about the debug adapter and debugging experience of Ansible can be found under the docs.

Requirements

The following Python requirements must be met before using this library:

  • Python 3.10+ (dependent on ansible-core support)
  • ansible-core >= 2.16.0
  • Linux or macOS (no Windows)

The debugger aims to continue to support the current ansible-core versions that have no reached End Of Life. See the ansible-core support matrix to see the current versions and the control node python versions for those versions. There are no guarantees that all features will be supported across Ansible versions, new features might be reliant on changes only present in newer Ansible versions. Any such features will be explicitly called out in the documentation.

Installation

This library has been published on PyPI and can be installed with:

python -m pip install ansibug

To test out the changes locally run the following:

git clone https://github.com/jborean93/ansibug.git

python -m pip install -e .[dev]
pre-commit install

This will install the current code in editable mode and also include some development libraries needed for testing or other development features.

Testing

This library uses tox to run the sanity and integration tests. Once the dev extras for this library has been installed, all the tests can be run by running the tox command.

As the support matrix for this library can take some time to run it might be beneficial to run only certain tests. The following factors are available in tox

  • sanity
  • py3{10,11,12,13,14}
  • ansible_{2.16,2.17,2.18,2.19,2.20,devel}

Here are some example factors that can be invoked with tox:

# Run only the sanity tests
tox run -f sanity

# Run Ansible 2.16 on all its supported Python versions
tox run -f ansible_2.16

# Run Python 3.12 on all the supported Ansible versions
tox run -f py312

# Run Ansible 2.16 tests on Python 3.12
tox run -f py312 ansible_2.16

Metadata

Release files for ansibug 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansibug 0.3.2
File Size Uploaded Provenance
ansibug-0.3.2.tar.gz 58.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ansibug 0.3.2
File Interpreter ABI Platform
ansibug-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 126.2 kB

Release files / ansibug-0.3.2.tar.gz

Download URL ansibug-0.3.2.tar.gz
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4278552e588a1a8aa88c37857abb485f313ed4aab8e637cc8302a8d7f8744dce
BLAKE2b-256 checksum
How to use checksums
444d7295118906bc506e65a35f99a2b50b6ca6e4afad2a751256fd12e20fd15e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2025.

Transparency log

Release files / ansibug-0.3.2-py3-none-any.whl

Download URL ansibug-0.3.2-py3-none-any.whl
Size 67.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca062a5fac3cf52abf7cc2de891871f0699b42e321a323c51b08b8bb46037df9
BLAKE2b-256 checksum
How to use checksums
4e8e7f4de129fd8980b4595d29c49016a104653024aaec83bcbdbd9fbcf99f71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2025.

Transparency log

Security for ansibug 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ansibug-0.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page