Skip to main content

About Ansible Molecule

PyPI Package Documentation Status image Python Black Code Style Ansible Code of Conduct Discussions Repository License

Molecule is an Ansible testing framework designed for developing and testing Ansible collections, playbooks, and roles.

Molecule leverages standard Ansible features including inventory, playbooks, and collections to provide flexible testing workflows. Test scenarios can target any system or service reachable from Ansible, from containers and virtual machines to cloud infrastructure, hyperscaler services, APIs, databases, and network devices. Molecule can also validate inventory configurations and dynamic inventory sources.

Molecule encourages an approach that results in consistently developed Ansible content that is well-written, easily understood and maintained.

Molecule supports only the latest two major versions of Ansible (N/N-1).

Once installed, the command line can be called using any of the methods below:

molecule ...
python3 -m molecule ...  # python module calling method

Documentation

Read the documentation and more at https://docs.ansible.com/projects/molecule//.

Get Involved

See the Talk to us section of the documentation to ask questions, find help, and join the conversation.

For complete details, see the Ansible communication guide.

If you want to get moving fast and make a quick patch:

git clone https://github.com/ansible/molecule && cd molecule
python3 -m venv .venv && source .venv/bin/activate
python3 -m pip install -U setuptools pip tox

And you're ready to make your changes!

Authors

Molecule project was created by Retr0h and it is now community-maintained as part of the Ansible by Red Hat project.

License

The MIT License.

The logo is licensed under the Creative Commons NoDerivatives 4.0 License.

If you have some other use in mind, contact us.

Release files for molecule 26.9.0

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

Source distribution (sdist)

Source distribution for molecule 26.9.0
File Size Uploaded
molecule-26.9.0.tar.gz 4.8 MB Details

Built distribution (wheel)

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

Total release size: 4.9 MB

Release files / molecule-26.9.0.tar.gz

Download URL molecule-26.9.0.tar.gz
Size 4.8 MB
Tags Source
SHA-256 checksum
How to use checksums
1c44254eb173d0a3a48217b874d19bfa436614fb0c6faa75d9b192a843360188
BLAKE2b-256 checksum
How to use checksums
87ebef1f1a0eba6e2fac4e59001c539109bc65c4dcd1b8a9d2b93c9097241d71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

Release files / molecule-26.9.0-py3-none-any.whl

Download URL molecule-26.9.0-py3-none-any.whl
Size 163.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad8f468c01f35a27cd12858e24c86ad27344dc1076845f03d78fdb563fb69f82
BLAKE2b-256 checksum
How to use checksums
4eb74041d1b53467e12a4fd72ae7e0bb8ccc2909e126e2bb0cf2babcae82cc41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

26.9.0 This release

2 release files

26.8.0

2 release files

26.6.0

2 release files

26.2.0

2 release files

25.9.0

2 release files

25.7.0

2 release files

25.6.0

2 release files

25.5.0

2 release files

25.3.1

2 release files

25.3.0

2 release files

25.2.0

2 release files

25.1.0

2 release files

24.9.0

2 release files

24.8.0

2 release files

24.7.0

2 release files

6.0.3

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.1.0

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.0.4

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.6.1

2 release files

3.6.0

2 release files

3.5.2

2 release files

3.5.1

2 release files

3.4.1

2 release files

3.4.0

2 release files

3.3.4

2 release files

3.3.3

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.5

2 release files

3.1.4

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.22

2 release files

2.20.2

2 release files

2.20.1

2 release files

2.20.0

2 release files

2.19.0

3 release files

2.18.1

3 release files

2.18.0

3 release files

2.17.0

3 release files

2.16.0

3 release files

2.14.0

3 release files

2.13.0

3 release files

2.11.0

2 release files

1.25.1

2 release files

1.23.0

2 release files

1.22.0

2 release files

1.21.1

2 release files

1.20.3

2 release files

1.20.2

1.20.1

2 release files

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