Skip to content
This repository has been archived by the owner. It is now read-only.
Ansible role for installing the Molecule test tool for Ansible
Shell Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.moleculew Increased upper Ansible test range to Ansible 2.7 (#60) Oct 8, 2018
defaults Updated Molecule to 2.17.0 (#54) Aug 22, 2018
handlers Initial commit after running ansible-galaxy init Aug 24, 2016
meta Increased minimum Ansible version to 2.5 (#61) Oct 9, 2018
molecule/default Added support for Ubuntu Bionic (#57) Sep 6, 2018
tasks Resolved apt module syntax deprecation warning (#62) Oct 10, 2018
vars Updated Molecule to 1.16 (#23) Dec 8, 2016
.editorconfig Added .editorconfig file (#15) Sep 9, 2016
.gitattributes Added .gitattributes Aug 24, 2016
.gitignore Added pycache to .gitignore (#10) Aug 26, 2016
.yamllint Updated Molecule to 2.16.0 (#45) Aug 7, 2018
LICENSE Initial commit Aug 24, 2016 Added deprecation notice (#64) May 18, 2019
moleculew Updated moleculew to version 0.9.9 (#59) Sep 16, 2018

Ansible Role: Molecule

Build Status Ansible Galaxy License

Ansible role for installing the Molecule test tool for Ansible.

Deprecation notice: this role is no longer maintained, please use Molecule Wrapper instead.


  • Ansible >= 2.5

  • Ubuntu

    • Xenial (16.04)
    • Bionic (18.04)
    • Note: newer Ubuntu versions may work but have not been tested.

Role Variables

The following variables will change the behavior of this role (default values are shown below):

# The version of Molecule to install
molecule_version: '2.17.0'

Example Playbook

- hosts: servers
     - role: gantsign.molecule

More Roles From GantSign

You can find more roles from GantSign on Ansible Galaxy.

Development & Testing

This project uses Molecule to aid in the development and testing; the role is unit tested using Testinfra and pytest.

To develop or test you'll need to have installed the following:

Because the above can be tricky to install, this project includes Molecule Wrapper. Molecule Wrapper is a shell script that installs Molecule and it's dependencies (apart from Linux) and then executes Molecule with the command you pass it.

To test this role using Molecule Wrapper run the following command from the project root:

./moleculew test

Note: some of the dependencies need sudo permission to install.



Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)

You can’t perform that action at this time.