Molecule aids in the development and testing of Ansible roles
Project description
About Ansible Molecule
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-community/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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molecule-25.12.0.tar.gz.
File metadata
- Download URL: molecule-25.12.0.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b226bf1be67ce0fa30c726aab226063f9443e561d7e3d048f55dfb2ee51adbd6
|
|
| MD5 |
648e8fe37f57aea31d0b55c88512d1ed
|
|
| BLAKE2b-256 |
b8b1205ca8017593656836463cee1e4690b86d219ca19caebc704b8b00f7c6e8
|
Provenance
The following attestation bundles were made for molecule-25.12.0.tar.gz:
Publisher:
release.yml on ansible/molecule
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molecule-25.12.0.tar.gz -
Subject digest:
b226bf1be67ce0fa30c726aab226063f9443e561d7e3d048f55dfb2ee51adbd6 - Sigstore transparency entry: 736807673
- Sigstore integration time:
-
Permalink:
ansible/molecule@7c52ed06d3b51e81b752b61a845d22956088443e -
Branch / Tag:
refs/tags/v25.12.0 - Owner: https://github.com/ansible
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7c52ed06d3b51e81b752b61a845d22956088443e -
Trigger Event:
release
-
Statement type:
File details
Details for the file molecule-25.12.0-py3-none-any.whl.
File metadata
- Download URL: molecule-25.12.0-py3-none-any.whl
- Upload date:
- Size: 152.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df4fc034f3204efce7247b5b1087b2a7e411e27374a05fe96c6c676656e82bd
|
|
| MD5 |
87d1b621773bf6036550ee9edba7797d
|
|
| BLAKE2b-256 |
5e04ea54db2bcec0b76c8c4747c663b8b8591b63bbd424a656d70b11cb8f33e9
|
Provenance
The following attestation bundles were made for molecule-25.12.0-py3-none-any.whl:
Publisher:
release.yml on ansible/molecule
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molecule-25.12.0-py3-none-any.whl -
Subject digest:
3df4fc034f3204efce7247b5b1087b2a7e411e27374a05fe96c6c676656e82bd - Sigstore transparency entry: 736807677
- Sigstore integration time:
-
Permalink:
ansible/molecule@7c52ed06d3b51e81b752b61a845d22956088443e -
Branch / Tag:
refs/tags/v25.12.0 - Owner: https://github.com/ansible
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7c52ed06d3b51e81b752b61a845d22956088443e -
Trigger Event:
release
-
Statement type: