Skip to main content

Molecule aids in the development and testing of Ansible roles.

Project description


.. image::
:alt: PyPI Package

.. image::
:alt: Documentation Status

.. image::
:target: LICENSE
:alt: Repository License

Molecule is designed to aid in the development and testing of `Ansible`_ roles.
Molecule provides support for testing with multiple instances, operating
systems and distributions, virtualization providers, test frameworks and
testing scenarios. Molecule is opinionated in order to encourage an approach
that results in consistently developed roles that are well-written, easily
understood and maintained.

Molecule uses `Ansible`_ `playbooks`_ to exercise the `role`_ and its
associated tests. Molecule supports any provider [#]_ that `Ansible`_

.. [#]

Providers can be bare-metal, virtual, cloud or containers. If Ansible can
use it, Molecule can test it. Molecule simply leverages Ansible's module
system to manage instances.

.. _`playbooks`:
.. _`role`:

Quick Start


.. image::
:alt: Installing

Creating a new role

.. image::
:alt: Creating a new role

Testing a new role

.. image::
:alt: Testing a new role

Testing an existing role

.. image::
:alt: Testing an existing role



`Infrastructure Testing with Molecule`_, AnsibleFest SF 2017

.. _`Infrastructure Testing with Molecule`:



Join us in the #molecule-users channel on `freenode`_.

.. _`freenode`:


* `molecule-users`_
* `molecule-dev`_

.. _`molecule-users`:!forum/molecule-users
.. _`molecule-dev`:!forum/molecule-dev

Ansible Support

Molecule requires Ansible version 2.2 or later.

.. _`Ansible`:



.. _`MIT`:

The logo is licensed under the `Creative Commons NoDerivatives 4.0 License`_.
If you have some other use in mind, contact us.

.. _`Creative Commons NoDerivatives 4.0 License`:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
molecule-2.10.0-py2-none-any.whl (168.2 kB) Copy SHA256 hash SHA256 Wheel py2
molecule-2.10.0.tar.gz (4.5 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page