Awesome Open Source
Awesome Open Source

Ansible Molecule

.. image:: :target: :alt: PyPI Package

.. image:: :target: :alt: Documentation Status

.. image:: :target:

.. image:: :target: :alt: Python Black Code Style

.. image:: :target: :alt: Ansible Code of Conduct

.. image:: :target: :alt: Discussions

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

About Ansible Molecule

Molecule project 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 encourages an approach that results in consistently developed roles that are well-written, easily understood and maintained.

Molecule supports only the latest two major versions of Ansible (N/N-1), meaning that if the latest version is 2.9.x, we will also test our code with 2.8.x.

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

.. code-block:: bash

molecule ...
mol ...  # same as above, introduced in 3.0.5
python3 -m molecule ...  # python module calling method

.. _Ansible:

.. _documentation:


Read the documentation and more at

.. _get-involved:

Get Involved

  • Join us in the #ansible-molecule irc channel on libera.chat_.
  • Check github discussions_.
  • Join the community working group by checking the wiki_.
  • Want to know about releases, subscribe to ansible-announce list_.
  • For the full list of Ansible email Lists, IRC channels see the communication page_.

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

.. code-block:: bash

$ git clone && 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!

.. .. _discussions: .. _wiki: .. _ansible-announce list: .. _communication page:

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

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

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (54,525
hacktoberfest (4,261
docker (2,921
testing (960
ansible (426
testing-framework (38