molecule 26.3.0


pip install molecule

  Latest version

Released: Mar 05, 2026


Meta
Author: Ansible by Red Hat
Maintainer: Ansible by Red Hat
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Intended Audience
  • Developers
  • Information Technology
  • System Administrators

Operating System
  • MacOS
  • POSIX

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Software Development :: Bug Tracking
  • Software Development :: Quality Assurance
  • Software Development :: Testing
  • System :: Systems Administration
  • Utilities

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-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.

26.3.0 Mar 05, 2026
26.2.0 Feb 25, 2026
25.12.0 Dec 02, 2025
25.11.1 Nov 24, 2025
25.11.0 Nov 10, 2025
25.9.0 Sep 15, 2025
25.9.0rc1 Aug 21, 2025
25.7.0 Jul 29, 2025
25.6.1.dev7 Jul 08, 2025
25.6.0 Jun 18, 2025
25.5.0 May 26, 2025
25.4.0 Apr 01, 2025
25.3.1 Feb 19, 2025
25.3.0 Feb 18, 2025
25.2.0 Jan 28, 2025
25.1.0 Jan 21, 2025
24.12.0 Dec 05, 2024
24.9.0 Sep 12, 2024
24.8.0 Aug 16, 2024
24.7.0 Jul 10, 2024
24.6.1 Jul 05, 2024
24.6.0 Jun 05, 2024
24.2.1 Apr 09, 2024
24.2.0 Feb 08, 2024
6.0.3 Dec 13, 2023
6.0.2 Aug 30, 2023
6.0.1 Aug 16, 2023
6.0.0 Aug 14, 2023
6.0.0rc0 Aug 13, 2023
6.0.0b0 Aug 09, 2023
6.0.0a2 Aug 01, 2023
6.0.0a1 Jul 25, 2023
6.0.0a0 Jul 12, 2023
5.1.0 Jun 23, 2023
5.0.1 May 03, 2023
5.0.0 Apr 20, 2023
5.0.0a1 Apr 19, 2023
5.0.0a0 Feb 07, 2023
4.0.4 Dec 05, 2022
4.0.3 Oct 25, 2022
4.0.2 Oct 16, 2022
4.0.1 Jul 20, 2022
4.0.0 Jun 16, 2022
4.0.0a0 Jun 01, 2022
3.6.1 Feb 14, 2022
3.6.0 Feb 06, 2022
3.5.2 Oct 06, 2021
3.5.1 Sep 17, 2021
3.5.0a0 Sep 05, 2021
3.4.1 Oct 02, 2021
3.4.0 Aug 03, 2021
3.3.4 Jun 05, 2021
3.3.3 Jun 01, 2021
3.3.2 May 19, 2021
3.3.1 May 14, 2021
3.3.0 Mar 23, 2021
3.2.4 Mar 16, 2021
3.2.3 Jan 29, 2021
3.2.2 Jan 08, 2021
3.2.1 Dec 19, 2020
3.2.0 Nov 25, 2020
3.2.0a2 Nov 25, 2020
3.2.0a1 Nov 20, 2020
3.2.0a0 Oct 27, 2020
3.1.5 Oct 26, 2020
3.1.4 Oct 20, 2020
3.1.3 Oct 18, 2020
3.1.2 Oct 16, 2020
3.1.1 Oct 15, 2020
3.1.0 Oct 15, 2020
3.1.0a2 Oct 13, 2020
3.1.0a1 Oct 12, 2020
3.0.8 Aug 20, 2020
3.0.7 Aug 17, 2020
3.0.6 Jul 14, 2020
3.0.5 Jul 09, 2020
3.0.4 Apr 29, 2020
3.0.3 Apr 08, 2020
3.0.2.1 May 01, 2020
3.0.2 Feb 23, 2020
3.0.1 Feb 20, 2020
3.0.0 Feb 20, 2020
3.0a9 Feb 17, 2020
3.0a8 Feb 11, 2020
3.0a6 Feb 06, 2020
3.0a5 Jan 14, 2020
3.0a4 Oct 27, 2019
3.0a3 Sep 19, 2019
3.0a2 Sep 17, 2019
3.0a1 Sep 16, 2019
3.0a0 Aug 28, 2019
2.22 Aug 19, 2019
2.22rc6 Aug 07, 2019
2.22rc3 Jun 22, 2019
2.22rc1 Jun 06, 2019
2.20.2 Jul 16, 2019
2.20.1 Apr 12, 2019
2.20.0 Mar 20, 2019
2.20.0.0a2 Mar 07, 2019
2.20.0.0a1 Feb 27, 2019
2.19.0 Oct 18, 2018
2.18.1 Sep 20, 2018
2.18.0 Sep 17, 2018
2.17.0 Aug 14, 2018
2.16.0 Jul 10, 2018
2.15.0 Jun 08, 2018
2.14.0 May 16, 2018
2.13.1 May 01, 2018
2.13.0 Apr 30, 2018
2.12.1 Apr 01, 2018
2.12.0 Apr 01, 2018
2.11.0 Mar 22, 2018
2.10.1 Mar 08, 2018
2.10.0 Mar 07, 2018
1.25.1 Sep 19, 2017
1.25.0 Jun 03, 2017
1.23.0 Mar 28, 2017
1.22.0 Mar 22, 2017
1.21.1 Mar 16, 2017
1.20.3 Feb 21, 2017
1.20.1 Feb 21, 2017

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
ansible-compat (>=25.1.4)
ansible-core (>=2.15.0)
click (<9,>=8.0)
enrich (>=1.2.7)
jinja2 (>=2.11.3)
jsonschema (>=4.9.1)
packaging (>=23.2)
pluggy (<2.0,>=0.7.1)
pyyaml (>=5.1)
rich (>=9.5.1)
wcmatch (>=8.1.2)